private property EntityStorageBase::$baseEntityClass in Drupal 10
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\EntityCode
private $baseEntityClass;