protected function EasyEmail::getListTextValues in Easy Email 8
Same name and namespace in other branches
- 2.0.x src/Entity/EasyEmail.php \Drupal\easy_email\Entity\EasyEmail::getListTextValues()
Parameters
\Drupal\Core\Field\FieldItemList $field_item_list:
Return value
string[]|null The string values from the field list
6 calls to EasyEmail::getListTextValues()
- EasyEmail::addTextValueToList in src/
Entity/ EasyEmail.php - Add an entity by ID to the an entity reference field item list.
- EasyEmail::getAttachmentPaths in src/
Entity/ EasyEmail.php - @inheritDoc
- EasyEmail::getBCCAddresses in src/
Entity/ EasyEmail.php - @inheritDoc
- EasyEmail::getCCAddresses in src/
Entity/ EasyEmail.php - @inheritDoc
- EasyEmail::getRecipientAddresses in src/
Entity/ EasyEmail.php - @inheritDoc
File
- src/
Entity/ EasyEmail.php, line 876
Class
- EasyEmail
- Defines the Email entity.
Namespace
Drupal\easy_email\EntityCode
protected function getListTextValues($field_item_list) {
if (!$field_item_list
->isEmpty()) {
$values = [];
foreach ($field_item_list as $delta => $item) {
if ($item->value !== NULL) {
$values[$delta] = $item->value;
}
}
return $values;
}
return NULL;
}