function ModerationInformationInterface::getWorkflowForEntityTypeAndBundle
Same name in other branches
- 9 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getWorkflowForEntityTypeAndBundle()
- 10 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getWorkflowForEntityTypeAndBundle()
- 11.x core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getWorkflowForEntityTypeAndBundle()
Gets the workflow for the given entity type and bundle.
Parameters
string $entity_type_id: The entity type ID.
string $bundle_id: The entity bundle ID.
Return value
\Drupal\workflows\WorkflowInterface|null The associated workflow. NULL if there is no workflow.
1 method overrides ModerationInformationInterface::getWorkflowForEntityTypeAndBundle()
- ModerationInformation::getWorkflowForEntityTypeAndBundle in core/
modules/ content_moderation/ src/ ModerationInformation.php - Gets the workflow for the given entity type and bundle.
File
-
core/
modules/ content_moderation/ src/ ModerationInformationInterface.php, line 204
Class
- ModerationInformationInterface
- Interface for moderation_information service.
Namespace
Drupal\content_moderationCode
public function getWorkflowForEntityTypeAndBundle($entity_type_id, $bundle_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.