function EntityStorageBase::getEntityClass
Same name in other branches
- 10 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getEntityClass()
- 11.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getEntityClass()
Overrides EntityStorageInterface::getEntityClass
7 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.