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

Gets the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface

1 call to Entity::entityTypeManager()
ImageStyle::getReplacementID in core/modules/image/src/Entity/ImageStyle.php
Returns the replacement ID.

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();
}