You are here

public function ContentModerationNotification::getMessageFormat in Content Moderation Notifications 8.3

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

Gets the message format.

Return value

string The format to be used for the message body.

Overrides ContentModerationNotificationInterface::getMessageFormat

File

src/Entity/ContentModerationNotification.php, line 170

Class

ContentModerationNotification
Defines the content_moderation_notification entity.

Namespace

Drupal\content_moderation_notifications\Entity

Code

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