You are here

public function I18n::getFunctions in Bamboo Twig 8.5

Same name and namespace in other branches
  1. 8.2 bamboo_twig_i18n/src/TwigExtension/I18n.php \Drupal\bamboo_twig_i18n\TwigExtension\I18n::getFunctions()
  2. 8.3 bamboo_twig_i18n/src/TwigExtension/I18n.php \Drupal\bamboo_twig_i18n\TwigExtension\I18n::getFunctions()
  3. 8.4 bamboo_twig_i18n/src/TwigExtension/I18n.php \Drupal\bamboo_twig_i18n\TwigExtension\I18n::getFunctions()

List of all Twig functions.

File

bamboo_twig_i18n/src/TwigExtension/I18n.php, line 29

Class

I18n
Provides some 'Internationalization' Twig Extensions.

Namespace

Drupal\bamboo_twig_i18n\TwigExtension

Code

public function getFunctions() {
  return [
    new TwigFunction('bamboo_i18n_current_lang', [
      $this,
      'getCurrentLanguage',
    ]),
  ];
}