function EntityStorageInterface::getEntityClass
Same name in other branches
- 10 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::getEntityClass()
- 11.x core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::getEntityClass()
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.
1 method overrides EntityStorageInterface::getEntityClass()
- EntityStorageBase::getEntityClass in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Retrieves the class name used to create the entity.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityStorageInterface.php, line 243
Class
- EntityStorageInterface
- Defines the interface for entity storage classes.
Namespace
Drupal\Core\EntityCode
public function getEntityClass(?string $bundle = NULL) : string;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.