You are here

public function Broken::applyIdentity in Courier 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/IdentityChannel/Broken.php \Drupal\courier\Plugin\IdentityChannel\Broken::applyIdentity()

Inserts the identity into the message.

Parameters

\Drupal\courier\ChannelInterface $message: The message. Passed by reference.

\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.

Overrides IdentityChannelPluginInterface::applyIdentity

File

src/Plugin/IdentityChannel/Broken.php, line 21

Class

Broken
Fallback plugin for missing IdentityChannel plugins.

Namespace

Drupal\courier\Plugin\IdentityChannel

Code

public function applyIdentity(ChannelInterface &$message, EntityInterface $identity) {
}