protected function redirectToTag(Tag $tag = null)
    {
        if (!$tag instanceof Tag) {
            return $this->redirectToRoute('netgen_tags_admin_root');
        }

        return $this->redirectToRoute(
            'netgen_tags_admin_tag_show',
            [
                'tagId' => $tag->id,
            ]
        );
    }
protected function redirectToTag(Tag $tag = null)
    {
        if (!$tag instanceof Tag) {
            return $this->redirectToRoute('netgen_tags_admin_root');
        }

        return $this->redirectToRoute(
            'netgen_tags_admin_tag_show',
            [
                'tagId' => $tag->id,
            ]
        );
    }
protected function redirectToTag ( Tag $ tag = null ) { if ( ! $ tag instanceof Tag ) { return $ this -> redirectToRoute ( 'netgen_tags_admin_root' ) ; } return $ this -> redirectToRoute ( 'netgen_tags_admin_tag_show' , [ 'tagId' => $ tag -> id , ] ) ; }
Redirects to tag page or dashboard if tag is not provided.

@param \Netgen\TagsBundle\API\Repository\Values\Tags\Tag $tag

@return \Symfony\Component\HttpFoundation\RedirectResponse
Redirects to tag page or dashboard if tag is not provided .