You are here

public function MessageInterface::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.

1 method overrides MessageInterface::setLanguage()
Message::setLanguage in src/Entity/Message.php
Set the language that should be used.

File

src/MessageInterface.php, line 95

Class

MessageInterface
Provides an interface defining a Message entity.

Namespace

Drupal\message

Code

public function setLanguage($language);