You are here

public function TestMessage::isEmpty in Courier 2.x

Same name and namespace in other branches
  1. 8 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 Whether there is enough data to transmit a message.

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\Entity

Code

public function isEmpty() {
  return empty($this
    ->getMessage());
}