You are here

public function Langs::getLang in Bamboo Twig 8

Retrieve the current language.

File

src/TwigExtension/Langs.php, line 46

Class

Langs
Provides a 'Langs' Twig Extensions.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

public function getLang() {
  return $this->language
    ->getCurrentLanguage()
    ->getId();
}