You are here

public function Message::setLanguage in Message 8

Set the language that should be used.

Parameters

string $language: The language to load from the message template when fetching the text.

Overrides MessageInterface::setLanguage

File

src/Entity/Message.php, line 386

Class

Message
Defines the Message entity class.

Namespace

Drupal\message\Entity

Code

public function setLanguage($language) {
  $this->language = $language;
}