function ModerationInformationInterface::getWorkflowForEntityTypeAndBundle
Same name in other branches
- 9 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getWorkflowForEntityTypeAndBundle()
- 8.9.x 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()
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.
File
-
core/
modules/ content_moderation/ src/ ModerationInformationInterface.php, line 148
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.