public function EntityStorageBase::getEntityClass in Drupal 10
Retrieves the class name used to create the entity.
Parameters
string|null $bundle: (optional) A specific entity type bundle identifier. Can be omitted in the case of entity types without bundles, like User.
Return value
string The entity class name.
Overrides EntityStorageInterface::getEntityClass
6 calls to EntityStorageBase::getEntityClass()
- ConfigEntityStorage::doCreate in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php - Performs storage-specific creation of entities.
- ContentEntityStorageBase::getEntityClass in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Retrieves the class name used to create the entity.
- EntityStorageBase::create in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Constructs a new entity object, without permanently saving it.
- EntityStorageBase::doCreate in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Performs storage-specific creation of entities.
- EntityStorageBase::mapFromStorageRecords in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Maps from storage records to entity objects.
1 method overrides EntityStorageBase::getEntityClass()
- ContentEntityStorageBase::getEntityClass in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Retrieves the class name used to create the entity.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php, line 114
Class
- EntityStorageBase
- A base entity storage class.
Namespace
Drupal\Core\EntityCode
public function getEntityClass(?string $bundle = NULL) : string {
return $this->baseEntityClass;
}