You are here

protected function TwigExtensionBase::getEntityTypeManager in Bamboo Twig 8.3

Same name and namespace in other branches
  1. 8.5 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getEntityTypeManager()
  2. 8.2 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getEntityTypeManager()
  3. 8.4 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getEntityTypeManager()

Lazy loading for the Drupal entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface Return the Drupal entity type manager.

1 call to TwigExtensionBase::getEntityTypeManager()
Render::renderEntity in bamboo_twig_loader/src/TwigExtension/Render.php
Returns the render array for an entity.

File

src/TwigExtension/TwigExtensionBase.php, line 27

Class

TwigExtensionBase
Provides a Twig Extension Lazy Service Injection.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

protected function getEntityTypeManager() {
  return $this->container
    ->get('entity_type.manager');
}