You are here

public function Redirect::setLanguage in Redirect 8

Sets the redirect language.

Parameters

string $language: Language code.

File

src/Entity/Redirect.php, line 99

Class

Redirect
The redirect entity class.

Namespace

Drupal\redirect\Entity

Code

public function setLanguage($language) {
  $this
    ->set('language', $language);
}