EntityStorageBase::$baseEntityClass

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::baseEntityClass
  2. 11.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::baseEntityClass

Name of the base entity class.

This is a private property since it's not meant to be set by child classes. It holds the name of the entity class defined in the entity type that is passed in to the constructor when instantiating an entity storage class.

Normally, the entity class is defined via an annotation when defining an entity type, via hook_entity_bundle_info() or via hook_entity_bundle_info_alter(). However, due to how this property works, the entity class can also be controlled via hook_entity_type_alter().

Type: string|null

File

core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 76

Class

EntityStorageBase
A base entity storage class.

Namespace

Drupal\Core\Entity

Code

private $baseEntityClass;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.