public function ModerationInformationInterface::getWorkflowForEntity in Drupal 9
Same name and namespace in other branches
- 8 core/modules/content_moderation/src/ModerationInformationInterface.php \Drupal\content_moderation\ModerationInformationInterface::getWorkflowForEntity()
Gets the workflow for the given content entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity to get the workflow for.
Return value
\Drupal\workflows\WorkflowInterface|null The workflow entity. NULL if there is no workflow.
1 method overrides ModerationInformationInterface::getWorkflowForEntity()
- ModerationInformation::getWorkflowForEntity in core/
modules/ content_moderation/ src/ ModerationInformation.php - Gets the workflow for the given content entity.
File
- core/
modules/ content_moderation/ src/ ModerationInformationInterface.php, line 135
Class
- ModerationInformationInterface
- Interface for moderation_information service.
Namespace
Drupal\content_moderationCode
public function getWorkflowForEntity(ContentEntityInterface $entity);