You are here

protected function TwigExtensionBase::getLanguageManager in Bamboo Twig 8.3

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

Returns the language manager service.

1 call to TwigExtensionBase::getLanguageManager()
I18n::getTranslation in bamboo_twig_i18n/src/TwigExtension/I18n.php
Gets a translation of the entity.

File

src/TwigExtension/TwigExtensionBase.php, line 205

Class

TwigExtensionBase
Provides a Twig Extension Lazy Service Injection.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

protected function getLanguageManager() {
  return $this->container
    ->get('language_manager');
}