You are here

public function MessageTemplate::setLabel in Message 8

Set the message template label.

Parameters

string $label: The message template label.

Return value

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

Overrides MessageTemplateInterface::setLabel

File

src/Entity/MessageTemplate.php, line 209

Class

MessageTemplate
Defines the Message template entity class.

Namespace

Drupal\message\Entity

Code

public function setLabel($label) {
  $this->label = $label;
  return $this;
}