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