public function EntityStorageInterface::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.
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;