8.5.x Entity.php Entity::entityTypeManager()
8.0.x Entity.php Entity::entityTypeManager()
8.1.x Entity.php Entity::entityTypeManager()
8.2.x Entity.php Entity::entityTypeManager()
8.3.x Entity.php Entity::entityTypeManager()
8.4.x Entity.php Entity::entityTypeManager()
8.6.x Entity.php Entity::entityTypeManager()

Gets the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface

File

core/lib/Drupal/Core/Entity/Entity.php, line 86

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

protected function entityTypeManager() {
  return \Drupal::entityTypeManager();
}