public function relatedContentAction(Request $request, Tag $tag)
    {
        $this->denyAccessUnlessGranted('ez:tags:read');

        $currentPage = (int) $request->query->get('page');
        $configResolver = $this->getConfigResolver();

        $pager = $this->createPager(
            $this->adapter,
            $currentPage,
            $configResolver->getParameter('admin.related_content_limit', 'eztags'),
            $tag
        );

        return $this->render(
            '@NetgenTags/admin/tag/related_content.html.twig',
            [
                'tag' => $tag,
                'related_content' => $pager,
            ]
        );
    }
public function relatedContentAction(Request $request, Tag $tag)
    {
        $this->denyAccessUnlessGranted('ez:tags:read');

        $currentPage = (int) $request->query->get('page');
        $configResolver = $this->getConfigResolver();

        $pager = $this->createPager(
            $this->adapter,
            $currentPage,
            $configResolver->getParameter('admin.related_content_limit', 'eztags'),
            $tag
        );

        return $this->render(
            '@NetgenTags/admin/tag/related_content.html.twig',
            [
                'tag' => $tag,
                'related_content' => $pager,
            ]
        );
    }
public function relatedContentAction ( Request $ request , Tag $ tag ) { $ this -> denyAccessUnlessGranted ( 'ez:tags:read' ) ; $ currentPage = ( int ) $ request -> query -> get ( 'page' ) ; $ configResolver = $ this -> getConfigResolver ( ) ; $ pager = $ this -> createPager ( $ this -> adapter , $ currentPage , $ configResolver -> getParameter ( 'admin.related_content_limit' , 'eztags' ) , $ tag ) ; return $ this -> render ( '@NetgenTags/admin/tag/related_content.html.twig' , [ 'tag' => $ tag , 'related_content' => $ pager , ] ) ; }
Rendering a view which shows related content of tag.

@param \Symfony\Component\HttpFoundation\Request $request
@param \Netgen\TagsBundle\API\Repository\Values\Tags\Tag $tag

@return \Symfony\Component\HttpFoundation\Response
Rendering a view which shows related content of tag .