protected function EmailField::getEmailFromFieldItem in Workbench Email 2.x
Same name and namespace in other branches
- 8 src/Plugin/RecipientType/EmailField.php \Drupal\workbench_email\Plugin\RecipientType\EmailField::getEmailFromFieldItem()
1 call to EmailField::getEmailFromFieldItem()
- EmailField::prepareRecipients in src/
Plugin/ RecipientType/ EmailField.php - Returns email address(s) matching this recipient type's configuration.
1 method overrides EmailField::getEmailFromFieldItem()
- EntityReferenceUser::getEmailFromFieldItem in src/
Plugin/ RecipientType/ EntityReferenceUser.php
File
- src/
Plugin/ RecipientType/ EmailField.php, line 158
Class
- EmailField
- Provides a recipient type of an email field.
Namespace
Drupal\workbench_email\Plugin\RecipientTypeCode
protected function getEmailFromFieldItem(FieldItemInterface $field_item) {
return $field_item
->get('value')
->getValue();
}