You are here

public function MessageInterface::setTemplate in Message 8

Set the message template.

Parameters

MessageTemplateInterface $template: Message template.

Return value

\Drupal\message\MessageInterface Returns the message object.

1 method overrides MessageInterface::setTemplate()
Message::setTemplate in src/Entity/Message.php
Set the message template.

File

src/MessageInterface.php, line 23

Class

MessageInterface
Provides an interface defining a Message entity.

Namespace

Drupal\message

Code

public function setTemplate(MessageTemplateInterface $template);