You are here

public function ContentModerationNotification::sendToAuthor in Content Moderation Notifications 8.3

Send the notification to the entity author.

Return value

bool Returns TRUE if the notification should be sent to the entity author.

Overrides ContentModerationNotificationInterface::sendToAuthor

File

src/Entity/ContentModerationNotification.php, line 184

Class

ContentModerationNotification
Defines the content_moderation_notification entity.

Namespace

Drupal\content_moderation_notifications\Entity

Code

public function sendToAuthor() {
  return $this
    ->get('author');
}