You are here

protected function TwigExtensionBase::getToken in Bamboo Twig 8.4

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

Return the token service.

Return value

\Drupal\Core\Utility\Token Return the token service.

File

src/TwigExtension/TwigExtensionBase.php, line 187

Class

TwigExtensionBase
Provides a Twig Extension Lazy Service Injection.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

protected function getToken() {
  return $this->container
    ->get('token');
}