Database tables

Another important bit of information for content entities is the database table name they will use for storage:

 *   base_table = "node", *   data_table = "node_field_data",

The node table in this case holds the primary information about the entities such as ID, uuid or bundle while the node_field_data table holds field data that is singular and not translatable. Otherwise, the respective fields can get their own database tables. I will explain how field data is stored a bit further on.

Get Drupal 8 Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.