function ModerationInformationInterface::isModeratedEntityType

Same name in other branches
  1. 9 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::isModeratedEntityType()
  2. 10 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::isModeratedEntityType()
  3. 11.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::isModeratedEntityType()

Determines if an entity type has at least one moderated bundle.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition to check.

Return value

bool TRUE if an entity type has a moderated bundle, FALSE otherwise.

1 method overrides ModerationInformationInterface::isModeratedEntityType()
ModerationInformation::isModeratedEntityType in core/modules/content_moderation/src/ModerationInformation.php
Determines if an entity type has at least one moderated bundle.

File

core/modules/content_moderation/src/ModerationInformationInterface.php, line 59

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\content_moderation

Code

public function isModeratedEntityType(EntityTypeInterface $entity_type);

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