public function TestMessage::setMessage in Courier 8
Same name and namespace in other branches
- 2.x tests/modules/courier_test_message/src/Entity/TestMessage.php \Drupal\courier_test_message\Entity\TestMessage::setMessage()
2 calls to TestMessage::setMessage()
- TestMessage::applyTokens in tests/
modules/ courier_test_message/ src/ Entity/ TestMessage.php - Applies tokens to relevant fields.
- TestMessage::importTemplate in tests/
modules/ courier_test_message/ src/ Entity/ TestMessage.php - Import the message values from configuration values into this entity, as found in the 'courier.template.TYPE' config type. Where TYPE is the entity type ID of this entity.
File
- tests/
modules/ courier_test_message/ src/ Entity/ TestMessage.php, line 49
Class
- TestMessage
- Defines storage for a test message.
Namespace
Drupal\courier_test_message\EntityCode
public function setMessage($message) {
$this
->get('message')->value = $message;
return $this;
}