public Entity::getEntityType()
Gets the entity type definition.
Return value
\Drupal\Core\Entity\EntityTypeInterface The entity type definition.
Overrides EntityInterface::getEntityType
File
- core/lib/Drupal/Core/Entity/Entity.php, line 396
Class
- Entity
- Defines a base entity class.
Namespace
Drupal\Core\Entity
Code
public function getEntityType() { return $this->entityManager()->getDefinition($this->getEntityTypeId()); }
Please login to continue.