function ModerationInformationInterface::shouldModerateEntitiesOfBundle
Same name in other branches
- 9 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::shouldModerateEntitiesOfBundle()
- 10 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::shouldModerateEntitiesOfBundle()
- 11.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::shouldModerateEntitiesOfBundle()
Determines if an entity type/bundle entities should be moderated.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition to check.
string $bundle: The bundle to check.
Return value
bool TRUE if an entity type/bundle entities should be moderated, FALSE otherwise.
1 method overrides ModerationInformationInterface::shouldModerateEntitiesOfBundle()
- ModerationInformation::shouldModerateEntitiesOfBundle in core/
modules/ content_moderation/ src/ ModerationInformation.php - Determines if an entity type/bundle entities should be moderated.
File
-
core/
modules/ content_moderation/ src/ ModerationInformationInterface.php, line 48
Class
- ModerationInformationInterface
- Interface for moderation_information service.
Namespace
Drupal\content_moderationCode
public function shouldModerateEntitiesOfBundle(EntityTypeInterface $entity_type, $bundle);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.