You are here

interface IdentityChannelPluginInterface in Courier 8

Same name and namespace in other branches
  1. 2.x src/Plugin/IdentityChannel/IdentityChannelPluginInterface.php \Drupal\courier\Plugin\IdentityChannel\IdentityChannelPluginInterface

Interface for IdentityChannel plugins.

Hierarchy

Expanded class hierarchy of IdentityChannelPluginInterface

All classes that implement IdentityChannelPluginInterface

2 files declare their use of IdentityChannelPluginInterface
User.php in src/Plugin/IdentityChannel/CourierEmail/User.php
Contains \Drupal\courier\Plugin\IdentityChannel\CourierEmail\User.
User.php in tests/modules/courier_test_message/src/Plugin/IdentityChannel/TestMessage/User.php

File

src/Plugin/IdentityChannel/IdentityChannelPluginInterface.php, line 16
Contains \Drupal\courier\Plugin\IdentityChannel\IdentityChannelPluginInterface.

Namespace

Drupal\courier\Plugin\IdentityChannel
View source
interface IdentityChannelPluginInterface {

  /**
   * Inserts the identity into the message.
   *
   * @param \Drupal\courier\ChannelInterface $message
   *   The message. Passed by reference.
   * @param 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

Namesort descending Modifiers Type Description Overrides
IdentityChannelPluginInterface::applyIdentity public function Inserts the identity into the message. 3