You are here

public function TestMessage::importTemplate in Courier 2.x

Same name and namespace in other branches
  1. 8 tests/modules/courier_test_message/src/Entity/TestMessage.php \Drupal\courier_test_message\Entity\TestMessage::importTemplate()

Import the message values from configuration values into this entity.

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.

This method is the reverse of {@link exportTemplate()}

Parameters

mixed $content: Values from a 'courier.template.TYPE' configuration.

Overrides ChannelInterface::importTemplate

File

tests/modules/courier_test_message/src/Entity/TestMessage.php, line 93

Class

TestMessage
Defines storage for a test message.

Namespace

Drupal\courier_test_message\Entity

Code

public function importTemplate($content) {
  $this
    ->setMessage($content['message']);
}