You are here

protected function EntityBase::entityTypeManager in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::entityTypeManager()
  2. 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::entityTypeManager()

Gets the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface

1 call to EntityBase::entityTypeManager()
ConfigEntityBundleBase::postSave in core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php
Acts on a saved entity before the insert or update hook is invoked.

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 88

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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