You are here

public function LanguageApi::currentLanguage in Little helpers 7.2

Same name and namespace in other branches
  1. 7 src/Locale/LanguageApi.php \Drupal\little_helpers\Locale\LanguageApi::currentLanguage()
1 call to LanguageApi::currentLanguage()
LanguageApi::languageLinks in src/Locale/LanguageApi.php
Give paths to all (or a subset) of the available translations.

File

src/Locale/LanguageApi.php, line 6

Class

LanguageApi

Namespace

Drupal\little_helpers\Locale

Code

public function currentLanguage() {
  return $GLOBALS['language']->language;
}