ENTITIES-IN-DRUPAL

Entity is object
Its play a major role in Drupal
Most of the features which is available in Drupal all are called as entities .

We have 2 level of entities
1.    content entity
2.    Configuration entity

Content entity

Users , block content , menu links ..etc

Configuration entity

Image style , vocabulary ,node type ..etc

Easy way to find the type of an entity

  1. contents are represented with numbers.
  2. Configuration are represented with machine_name.
  3. Content cant be moved from one site to another.
  4. Configuration can be moved from one site to another.

Node as a content entity its represented with number
If we create a one page using content entity each page have one unique node id
In below example node/1 -> it’s a number (integer).



Configuration entity
If we add a image styling under configuration menu it will referred as a machine_name.


How Configuration can be moved from one site to another

Under configuration menu - > under the development menu select Configuration synchronization
and choose Export option and select single item then choose configuration type and configuration name


We can use this configuration one machine to another one machine