public function CurrentLanguage::getLanguage in Twig Extender 8.2
Same name and namespace in other branches
- 8.4 src/Plugin/TwigPlugin/CurrentLanguage.php \Drupal\twig_extender\Plugin\TwigPlugin\CurrentLanguage::getLanguage()
- 8 src/Plugin/TwigPlugin/CurrentLanguage.php \Drupal\twig_extender\Plugin\TwigPlugin\CurrentLanguage::getLanguage()
- 8.3 src/Plugin/TwigPlugin/CurrentLanguage.php \Drupal\twig_extender\Plugin\TwigPlugin\CurrentLanguage::getLanguage()
- 4.x src/Plugin/TwigPlugin/CurrentLanguage.php \Drupal\twig_extender\Plugin\TwigPlugin\CurrentLanguage::getLanguage()
Returns current language.
File
- src/
Plugin/ TwigPlugin/ CurrentLanguage.php, line 23
Class
- CurrentLanguage
- The plugin for check authenticated user.
Namespace
Drupal\twig_extender\Plugin\TwigPluginCode
public function getLanguage() {
return \Drupal::languageManager()
->getCurrentLanguage();
}