You are here

public function ChannelInterface::importTemplate in Courier 8

Same name and namespace in other branches
  1. 2.x src/ChannelInterface.php \Drupal\courier\ChannelInterface::importTemplate()

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.

2 methods override ChannelInterface::importTemplate()
Email::importTemplate in src/Entity/Email.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.
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

src/ChannelInterface.php, line 65
Contains \Drupal\courier\ChannelInterface.

Class

ChannelInterface
Defines an interface for channels (templates).

Namespace

Drupal\courier

Code

public function importTemplate($content);