You are here

public function LanguageCookieConditionBase::getCurrentLanguage in Language Cookie 8

Get the current language.

Return value

\Drupal\Core\Language\LanguageInterface|null The current language when available, else NULL.

Overrides LanguageCookieConditionInterface::getCurrentLanguage

1 call to LanguageCookieConditionBase::getCurrentLanguage()
LanguageCookieConditionLanguageAccess::evaluate in src/Plugin/LanguageCookieCondition/LanguageCookieConditionLanguageAccess.php
Evaluates the condition and returns TRUE or FALSE accordingly.

File

src/LanguageCookieConditionBase.php, line 123

Class

LanguageCookieConditionBase
Base class for language cookie condition.

Namespace

Drupal\language_cookie

Code

public function getCurrentLanguage() {
  return $this->currentLanguage;
}