entityWorkflowRepository = $entityWorkflowRepository; $this->entityWorkflowManager = $entityWorkflowManager; } public function getTemplate(Notification $notification, array $options = []): string { return '@ChillMain/Workflow/_notification_include.html.twig'; } public function getTemplateData(Notification $notification, array $options = []): array { $entityWorkflow = $this->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; } }