public function Email::isEmpty in Courier 2.x
Same name and namespace in other branches
- 8 src/Entity/Email.php \Drupal\courier\Entity\Email::isEmpty()
Determine if there is enough data to transmit a message.
Ideally some validation should also be done on the entity form.
Return value
bool Whether there is enough data to transmit a message.
Overrides ChannelInterface::isEmpty
File
- src/
Entity/ Email.php, line 130
Class
- Defines storage for a composed email.
Namespace
Drupal\courier\EntityCode
public function isEmpty() {
return empty($this
->getBody()) || empty($this
->getSubject());
}