function EntityBase::getEntityType
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getEntityType()
- 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getEntityType()
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getEntityType()
Overrides EntityInterface::getEntityType
7 calls to EntityBase::getEntityType()
- ConfigEntityBase::toArray in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php - Gets an array of all property values.
- ConfigEntityBundleBase::preSave in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBundleBase.php - Acts on an entity before the presave hook is invoked.
- ContentEntityBase::createDuplicate in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Creates a duplicate of the entity.
- ContentEntityBase::label in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Gets the label of the entity.
- ContentEntityBase::wasDefaultRevision in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 427
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function getEntityType() {
return $this->entityTypeManager()
->getDefinition($this->getEntityTypeId());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.