public function FixedEmail::prepareRecipients in Workbench Email 2.x
Same name and namespace in other branches
- 8 src/Plugin/RecipientType/FixedEmail.php \Drupal\workbench_email\Plugin\RecipientType\FixedEmail::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 RecipientTypeBase::prepareRecipients
File
- src/
Plugin/ RecipientType/ FixedEmail.php, line 56
Class
- FixedEmail
- Provides a recipient type of fixed email field
Namespace
Drupal\workbench_email\Plugin\RecipientTypeCode
public function prepareRecipients(ContentEntityInterface $entity, TemplateInterface $template) {
return [
$this
->getConfiguration()['settings']['recipients'],
];
}