public function renderByIdAction($id, $path = '')
    {
        /**
         * @var PageInterface $page
         */
        $page = $this
            ->pageRepository
            ->findOneById($id);

        return $this
            ->pageResponseTransformer
            ->createResponseFromPage(
                $page,
                $path
            );
    }
public function renderByIdAction($id, $path = '')
    {
        /**
         * @var PageInterface $page
         */
        $page = $this
            ->pageRepository
            ->findOneById($id);

        return $this
            ->pageResponseTransformer
            ->createResponseFromPage(
                $page,
                $path
            );
    }
public function renderByIdAction ( $ id , $ path = '' ) { /**
         * @var PageInterface $page
         */ $ page = $ this -> pageRepository -> findOneById ( $ id ) ; return $ this -> pageResponseTransformer -> createResponseFromPage ( $ page , $ path ) ; }
Renders a page given its id and path.

@param string $id   Page id
@param string $path Page path

@return Response Generated response

@throws NotFoundHttpException Page not found
Renders a page given its id and path .