function ModerationHandler::isModeratedEntity

Same name in other branches
  1. 10 core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php \Drupal\content_moderation\Entity\Handler\ModerationHandler::isModeratedEntity()
  2. 11.x core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php \Drupal\content_moderation\Entity\Handler\ModerationHandler::isModeratedEntity()

Overrides ModerationHandlerInterface::isModeratedEntity

1 method overrides ModerationHandler::isModeratedEntity()
BlockContentModerationHandler::isModeratedEntity in core/modules/content_moderation/src/Entity/Handler/BlockContentModerationHandler.php
Determines if an entity should be moderated.

File

core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php, line 34

Class

ModerationHandler
Common customizations for most/all entities.

Namespace

Drupal\content_moderation\Entity\Handler

Code

public function isModeratedEntity(ContentEntityInterface $entity) {
    // Moderate all entities included in the moderation workflow by default.
    return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.