entityWorkflowRepository->find($notification->getRelatedEntityId()); return [ 'entity_workflow' => $entityWorkflow, 'handler' => $this->entityWorkflowManager->getHandler($entityWorkflow), ]; } public function supports(Notification $notification, array $options = []): bool { return $notification->getRelatedEntityClass() === EntityWorkflow::class; } }