public function view(ContentfulEntry $contentDocument): Response
    {
        if (!$contentDocument->getIsPublished() || $contentDocument->getIsDeleted()) {
            throw new NotFoundHttpException();
        }

        return $this->render(
            '@NetgenLayoutsContentful/contentful/content.html.twig',
            [
                'content' => $contentDocument,
            ]
        );
    }
public function view(ContentfulEntry $contentDocument): Response
    {
        if (!$contentDocument->getIsPublished() || $contentDocument->getIsDeleted()) {
            throw new NotFoundHttpException();
        }

        return $this->render(
            '@NetgenLayoutsContentful/contentful/content.html.twig',
            [
                'content' => $contentDocument,
            ]
        );
    }
public function view ( ContentfulEntry $ contentDocument ) : Response { if ( ! $ contentDocument -> getIsPublished ( ) || $ contentDocument -> getIsDeleted ( ) ) { throw new NotFoundHttpException ( ) ; } return $ this -> render ( '@NetgenLayoutsContentful/contentful/content.html.twig' , [ 'content' => $ contentDocument , ] ) ; }
Renders a Contentful entry.

@throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException If provided Contentful entry doesn't exist
Renders a Contentful entry .