public function Entity::entityInfo

Implements \Drupal\Core\Entity\EntityInterface::entityInfo().

Overrides EntityInterface::entityInfo

10 calls to Entity::entityInfo()

File

drupal/core/lib/Drupal/Core/Entity/Entity.php, line 380
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function entityInfo() {
  return \Drupal::entityManager()
    ->getDefinition($this
    ->entityType());
}