You are here

protected function EmailField::getEmailFromFieldItem in Workbench Email 8

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

Code

protected function getEmailFromFieldItem(FieldItemInterface $field_item) {
  return $field_item
    ->get('value')
    ->getValue();
}