You are here

public function RecipientTypeBase::prepareRecipients in Workbench Email 8

Same name and namespace in other branches
  1. 2.x src/Plugin/RecipientTypeBase.php \Drupal\workbench_email\Plugin\RecipientTypeBase::prepareRecipients()

Returns email address(s) matching this recipient type's configuration.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: Entity being transitioned.

\Drupal\workbench_email\TemplateInterface $template: Template being used.

Overrides RecipientTypeInterface::prepareRecipients

5 methods override RecipientTypeBase::prepareRecipients()
Author::prepareRecipients in src/Plugin/RecipientType/Author.php
Returns email address(s) matching this recipient type's configuration.
EmailField::prepareRecipients in src/Plugin/RecipientType/EmailField.php
Returns email address(s) matching this recipient type's configuration.
FixedEmail::prepareRecipients in src/Plugin/RecipientType/FixedEmail.php
Returns email address(s) matching this recipient type's configuration.
LastRevisionAuthor::prepareRecipients in src/Plugin/RecipientType/LastRevisionAuthor.php
Returns email address(s) matching this recipient type's configuration.
Role::prepareRecipients in src/Plugin/RecipientType/Role.php
Returns email address(s) matching this recipient type's configuration.

File

src/Plugin/RecipientTypeBase.php, line 122

Class

RecipientTypeBase
Provides a base class for Recipient type plugins.

Namespace

Drupal\workbench_email\Plugin

Code

public function prepareRecipients(ContentEntityInterface $entity, TemplateInterface $template) {
  return [];
}