You are here

public function LanguageCookieConditionBase::setCurrentLanguage in Language Cookie 8

Set the current language.

Parameters

\Drupal\Core\Language\LanguageInterface $language: The current language object.

Return value

$this Returns itself.

Overrides LanguageCookieConditionInterface::setCurrentLanguage

File

src/LanguageCookieConditionBase.php, line 115

Class

LanguageCookieConditionBase
Base class for language cookie condition.

Namespace

Drupal\language_cookie

Code

public function setCurrentLanguage(LanguageInterface $language) {
  $this->currentLanguage = $language;
  return $this;
}