Document the type of tables an entity type can define

Created on 28 April 2016, over 8 years ago
Updated 15 March 2022, over 2 years ago

Apparently, entity types can use four different tables to store their data (not counting field tables).

I had to Google this and find https://drupalwatchdog.com/blog/2015/3/entity-storage-drupal-8-way to understand what the tables are meant to do. Looking at \Drupal\Core\Entity\EntityType doesn't tell you much:

  /**
   * The name of the entity type's base table.
   *
   * @var string|null
   */
  protected $base_table = NULL;

  /**
   * The name of the entity type's revision data table.
   *
   * @var string|null
   */
  protected $revision_data_table = NULL;

  /**
   * The name of the entity type's revision table.
   *
   * @var string|null
   */
  protected $revision_table = NULL;

  /**
   * The name of the entity type's data table.
   *
   * @var string|null
   */
  protected $data_table = NULL;

Can we document this better and if so: Where would be the best place to do so?

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Entity 

Last updated about 12 hours ago

Created by

🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium

Live updates comments and jobs are added and updated live.
  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024