Implement logic to check if editing of document is blocked by workflow

Using the workflow handlers we return the workflow that is attached to an object
so that within the workflowDocumentService we can then check whether this workflow blocks
the edition of a document.
This commit is contained in:
2024-07-01 12:14:03 +02:00
parent e9d4b9e2ab
commit c9d2e37cee
7 changed files with 86 additions and 20 deletions

View File

@@ -51,4 +51,6 @@ interface EntityWorkflowHandlerInterface
public function supports(EntityWorkflow $entityWorkflow, array $options = []): bool;
public function supportsFreeze(EntityWorkflow $entityWorkflow, array $options = []): bool;
public function findByRelatedEntity(object $object): ?EntityWorkflow;
}