You are here

public function LanguageCookieConditionInterface::setCurrentLanguage in Language Cookie 8

Set the current language.

Parameters

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

Return value

$this Returns itself.

1 method overrides LanguageCookieConditionInterface::setCurrentLanguage()
LanguageCookieConditionBase::setCurrentLanguage in src/LanguageCookieConditionBase.php
Set the current language.

File

src/LanguageCookieConditionInterface.php, line 96

Class

LanguageCookieConditionInterface
Interface LanguageCookieConditionInterface.

Namespace

Drupal\language_cookie

Code

public function setCurrentLanguage(LanguageInterface $language);