You are here

public function ContentModerationNotification::getRoleIds 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::getRoleIds()

Gets the relevant roles for this notification.

Return value

string[] The role IDs that should receive notification.

Overrides ContentModerationNotificationInterface::getRoleIds

File

src/Entity/ContentModerationNotification.php, line 133

Class

ContentModerationNotification
Defines the content_moderation_notification entity.

Namespace

Drupal\content_moderation_notifications\Entity

Code

public function getRoleIds() {
  return $this
    ->get('roles');
}