Skip to main content

Posts

Showing posts from February, 2019

Introduction to Entity API in Drupal 8

Entity types in core come in two variants. 1 - Configuration Entity:  Used by the  Configuration System (configuration API) ,Configuration entities are stored within the common  config  database table as rows. 2 -   Content Entity:  Consist of configurable and base fields, and can have revisions and support translations. Content entities are stored within a custom database table as rows. The table name is the same as the content entity "id", and the columns are defined by the entity's "baseFieldDefinitions" method. Reference :  https://www.drupal.org/docs/8/api/entity-api/introduction-to-entity-api-in-drupal-8