You are here

protected function EntityReferenceUser::getEmailFromFieldItem in Workbench Email 8

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

Code

protected function getEmailFromFieldItem(FieldItemInterface $field_item) {
  return $field_item->entity
    ->getEmail();
}