You are here

public function MessageTemplate::setTemplate in Message 8

Set the message template.

Parameters

string $template: The message template.

Return value

\Drupal\message\MessageTemplateInterface Returns the message template instance.

Overrides MessageTemplateInterface::setTemplate

File

src/Entity/MessageTemplate.php, line 224

Class

MessageTemplate
Defines the Message template entity class.

Namespace

Drupal\message\Entity

Code

public function setTemplate($template) {
  $this->template = $template;
  return $this;
}