protected function EntityReferenceUser::getEmailFromFieldItem in Workbench Email 2.x
Same name and namespace in other branches
- 8 src/Plugin/RecipientType/EntityReferenceUser.php \Drupal\workbench_email\Plugin\RecipientType\EntityReferenceUser::getEmailFromFieldItem()
Overrides EmailField::getEmailFromFieldItem
File
- src/
Plugin/ RecipientType/ EntityReferenceUser.php, line 71
Class
- EntityReferenceUser
- Provides a recipient type based on entity reference fields.
Namespace
Drupal\workbench_email\Plugin\RecipientTypeCode
protected function getEmailFromFieldItem(FieldItemInterface $field_item) {
return $field_item->entity
->getEmail();
}