You are here

public function UrlLanguageService::setUrlLanguage in Allowed Languages 8

Set the stored language.

Parameters

\Drupal\Core\Language\LanguageInterface $language: The language to set.

File

src/UrlLanguageService.php, line 46

Class

UrlLanguageService
Allowed languages url language service.

Namespace

Drupal\allowed_languages

Code

public function setUrlLanguage(LanguageInterface $language) {
  $this->storedLanguage = $language;
}