interface IdentityChannelPluginInterface in Courier 2.x
Same name and namespace in other branches
- 8 src/Plugin/IdentityChannel/IdentityChannelPluginInterface.php \Drupal\courier\Plugin\IdentityChannel\IdentityChannelPluginInterface
Interface for IdentityChannel plugins.
Hierarchy
- interface \Drupal\courier\Plugin\IdentityChannel\IdentityChannelPluginInterface
Expanded class hierarchy of IdentityChannelPluginInterface
All classes that implement IdentityChannelPluginInterface
2 files declare their use of IdentityChannelPluginInterface
File
- src/
Plugin/ IdentityChannel/ IdentityChannelPluginInterface.php, line 11
Namespace
Drupal\courier\Plugin\IdentityChannelView source
interface IdentityChannelPluginInterface {
/**
* Inserts the identity into the message.
*
* @param \Drupal\courier\ChannelInterface $message
* The message. Passed by reference.
* @param \Drupal\Core\Entity\EntityInterface $identity
* The identity.
*
* @throws \Drupal\courier\Exception\IdentityException
* Thrown when an identity cannot be applied. Message is discarded, it does
* not stop creation of remaining messages in collection.
*/
public function applyIdentity(ChannelInterface &$message, EntityInterface $identity);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
IdentityChannelPluginInterface:: |
public | function | Inserts the identity into the message. | 3 |