public function ContentModerationInterface::getBundlesForEntityType in Drupal 9
Same name and namespace in other branches
- 8 core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::getBundlesForEntityType()
Gets any bundles the workflow is applied to for the given entity type.
Parameters
string $entity_type_id: The entity type ID to get the bundles for.
Return value
string[] The bundles of the entity type the workflow is applied to or an empty array if the entity type is not applied to the workflow.
1 method overrides ContentModerationInterface::getBundlesForEntityType()
- ContentModeration::getBundlesForEntityType in core/
modules/ content_moderation/ src/ Plugin/ WorkflowType/ ContentModeration.php - Gets any bundles the workflow is applied to for the given entity type.
File
- core/
modules/ content_moderation/ src/ Plugin/ WorkflowType/ ContentModerationInterface.php, line 30
Class
- ContentModerationInterface
- Interface for ContentModeration WorkflowType plugin.
Namespace
Drupal\content_moderation\Plugin\WorkflowTypeCode
public function getBundlesForEntityType($entity_type_id);