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

public function getEntityType() {
  return $this->entityManager()->getDefinition($this->getEntityTypeId());
}
doc_Drupal
2016-10-29 09:04:20
Comments
Leave a Comment

Please login to continue.