function ContentModerationInterface::getBundlesForEntityType
Same name in other branches
- 9 core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::getBundlesForEntityType()
- 8.9.x core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::getBundlesForEntityType()
- 10 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);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.