public function I18n::getFunctions in Bamboo Twig 8.3
Same name and namespace in other branches
- 8.5 bamboo_twig_i18n/src/TwigExtension/I18n.php \Drupal\bamboo_twig_i18n\TwigExtension\I18n::getFunctions()
- 8.2 bamboo_twig_i18n/src/TwigExtension/I18n.php \Drupal\bamboo_twig_i18n\TwigExtension\I18n::getFunctions()
- 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 27
Class
- I18n
- Provides some 'Internationalization' Twig Extensions.
Namespace
Drupal\bamboo_twig_i18n\TwigExtensionCode
public function getFunctions() {
return [
new \Twig_SimpleFunction('bamboo_i18n_current_lang', [
$this,
'getCurrentLanguage',
]),
];
}