Node vs. entity in drupal

Please find below given clear explanation…..

  • To me, the concept of “node” is fairly clear: It is an “instantiation” of a content-type. When you add content, you choose the type, e.g. “Article”, and the content that you add (e.g. the article text, title, images, etc.) is stored as one unit in the database, and is also often assigned its own URL path. A node is then retrieved, upon user request (i.e. the appropriate HTTP GET), by the node module and passed on to the template which places in on its appropriate place in the layout and generates and returns the webpage (the actual final markup that is served to the browser) by adding in other components of the page (e.g. menus, blocks, etc.). What I find a bit fuzzy however is the concept of entity. A user is an entity, so is a node? How about a role, or a block? How about a comment or a menu? Are those entities too?I can’t yet quite see its place in the overall scheme.
  • To me, “entity” is just a fancy synonym for “thingie”, which is about as vague (or general/abstract) as you could get. Indeed, if knew what is NOT an entity, it might become clearer.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s