src/Sulu/Bundle/TagBundle/Controller/TagController.php
public function getAction($id)
    {
        $view = $this->responseGetById(
            $id,
            function($id) {
                return $this->getManager()->findById($id);
            }
        );

        $context = new Context();
        $context->setGroups(['partialTag']);
        $view->setContext($context);

        return $this->handleView($view);
    }
public function getAction($id)
    {
        $view = $this->responseGetById(
            $id,
            function($id) {
                return $this->getManager()->findById($id);
            }
        );

        $context = new Context();
        $context->setGroups(['partialTag']);
        $view->setContext($context);

        return $this->handleView($view);
    }
public function getAction ( $ id ) { $ view = $ this -> responseGetById ( $ id , function ( $ id ) { return $ this -> getManager ( ) -> findById ( $ id ) ; } ) ; $ context = new Context ( ) ; $ context -> setGroups ( [ 'partialTag' ] ) ; $ view -> setContext ( $ context ) ; return $ this -> handleView ( $ view ) ; }
Returns a single tag with the given id.

@param $id

@return Response
Returns a single tag with the given id .