public function ModerationInformationInterface::getWorkflowForEntityTypeAndBundle in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getWorkflowForEntityTypeAndBundle()
- 9 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);