You are here

public function OpignoNotification::getMessage in Opigno notifications 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoNotification.php \Drupal\opigno_notification\Entity\OpignoNotification::getMessage()

Gets the notification message.

Return value

string The message of the notification.

Overrides OpignoNotificationInterface::getMessage

File

src/Entity/OpignoNotification.php, line 175

Class

OpignoNotification
Defines the opigno_notification entity.

Namespace

Drupal\opigno_notification\Entity

Code

public function getMessage() {
  $value = $this
    ->get('message')
    ->getValue();
  if (!isset($value)) {
    return NULL;
  }
  return $value[0]['value'];
}