function TestMessage::isEmpty in Courier 8
Same name and namespace in other branches
- 2.x tests/modules/courier_test_message/src/Entity/TestMessage.php \Drupal\courier_test_message\Entity\TestMessage::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
Overrides ChannelInterface::isEmpty
File
- tests/
modules/ courier_test_message/ src/ Entity/ TestMessage.php, line 67
Class
- TestMessage
- Defines storage for a test message.
Namespace
Drupal\courier_test_message\EntityCode
function isEmpty() {
return empty($this
->getMessage());
}