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\messageCode
public function setTemplate(MessageTemplateInterface $template);