getEntityWorkflowStep()->getEntityWorkflow(); $storedObject = $handler->getAssociatedStoredObject($entityWorkflow); if (null === $storedObject) { return 'document removed'; } $title = $handler->getEntityTitle($entityWorkflow); return $this->twig->render( '@ChillDocStore/Workflow/public_view_with_document_render.html.twig', [ 'title' => $title, 'storedObject' => $storedObject, 'send' => $send, 'metadata' => $metadata, 'attachments' => $entityWorkflow->getAttachments(), ] ); } }