You are here

public function ContentModerationNotification::getMessage in Content Moderation Notifications 8.2

Same name and namespace in other branches
  1. 8.3 src/Entity/ContentModerationNotification.php \Drupal\content_moderation_notifications\Entity\ContentModerationNotification::getMessage()

Gets the message value.

Return value

string The message body text.

Overrides ContentModerationNotificationInterface::getMessage

File

src/Entity/ContentModerationNotification.php, line 116

Class

ContentModerationNotification
Defines the content_moderation_notification entity.

Namespace

Drupal\content_moderation_notifications\Entity

Code

public function getMessage() {
  return $this
    ->get('body')['value'];
}