public function NotificationInformation::isModeratedEntity in Content Moderation Notifications 8.2
Same name and namespace in other branches
- 8.3 src/NotificationInformation.php \Drupal\content_moderation_notifications\NotificationInformation::isModeratedEntity()
Determines if an entity is moderated.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity we may be moderating.
Return value
bool TRUE if this entity is moderated, FALSE otherwise.
Overrides NotificationInformationInterface::isModeratedEntity
2 calls to NotificationInformation::isModeratedEntity()
- NotificationInformation::getNotifications in src/
NotificationInformation.php - Gets the list of notification based on the current transition.
- NotificationInformation::getWorkflow in src/
NotificationInformation.php - Checks for the workflow object of the moderated entity.
File
- src/
NotificationInformation.php, line 44
Class
- NotificationInformation
- Service for notification related questions about the moderated entity.
Namespace
Drupal\content_moderation_notificationsCode
public function isModeratedEntity(EntityInterface $entity) {
return $this->moderationInformation
->isModeratedEntity($entity);
}