You are here

public function Broken::applyIdentity in Courier 8

Same name and namespace in other branches
  1. 2.x 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.

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 27
Contains \Drupal\courier\Plugin\IdentityChannel\Broken.

Class

Broken
Fallback plugin for missing IdentityChannel plugins.

Namespace

Drupal\courier\Plugin\IdentityChannel

Code

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