function ContentModerationInterface::addEntityTypeAndBundle
Same name in other branches
- 9 core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::addEntityTypeAndBundle()
- 8.9.x core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::addEntityTypeAndBundle()
- 11.x core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface::addEntityTypeAndBundle()
Add an entity type ID / bundle ID to the workflow.
Parameters
string $entity_type_id: The entity type ID to add. It is responsibility of the caller to provide a valid entity type ID.
string $bundle_id: The bundle ID to add. It is responsibility of the caller to provide a valid bundle ID.
1 method overrides ContentModerationInterface::addEntityTypeAndBundle()
- ContentModeration::addEntityTypeAndBundle in core/
modules/ content_moderation/ src/ Plugin/ WorkflowType/ ContentModeration.php - Add an entity type ID / bundle ID to the workflow.
File
-
core/
modules/ content_moderation/ src/ Plugin/ WorkflowType/ ContentModerationInterface.php, line 66
Class
- ContentModerationInterface
- Interface for ContentModeration WorkflowType plugin.
Namespace
Drupal\content_moderation\Plugin\WorkflowTypeCode
public function addEntityTypeAndBundle($entity_type_id, $bundle_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.