You are here

public function TestMessage::exportTemplate in Courier 8

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

Export the message values from this template to configuration values, 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 importTemplate()}

Return value

mixed Values from this entity converted to 'courier.template.TYPE' configuration.

Overrides ChannelInterface::exportTemplate

File

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

Class

TestMessage
Defines storage for a test message.

Namespace

Drupal\courier_test_message\Entity

Code

public function exportTemplate() {
  return [
    'message' => $this
      ->getMessage(),
  ];
}