Entity::getEntityType

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());
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.