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
1 2 3 | public function getEntityType() { return $this ->entityManager()->getDefinition( $this ->getEntityTypeId()); } |
Please login to continue.