You are here

public function Langs::getFunctions in Bamboo Twig 8

List of all Twig functions.

File

src/TwigExtension/Langs.php, line 30

Class

Langs
Provides a 'Langs' Twig Extensions.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('get_lang', [
      $this,
      'getLang',
    ]),
  ];
}