public function EasyEmail::getRecipients in Easy Email 8
Same name and namespace in other branches
- 2.0.x src/Entity/EasyEmail.php \Drupal\easy_email\Entity\EasyEmail::getRecipients()
@inheritDoc
Overrides EasyEmailInterface::getRecipients
File
- src/
Entity/ EasyEmail.php, line 223
Class
- EasyEmail
- Defines the Email entity.
Namespace
Drupal\easy_email\EntityCode
public function getRecipients() {
if ($this
->hasField('recipient_uid')) {
return $this
->get('recipient_uid')
->referencedEntities();
}
return NULL;
}