public function getTags()
    {
        $tags = array();
        foreach ($this->getTokenParsers()->getParsers() as $parser) {
            if ($parser instanceof Twig_TokenParserInterface) {
                $tags[$parser->getTag()] = $parser;
            }
        }

        return $tags;
    }
public function getTags()
    {
        $tags = array();
        foreach ($this->getTokenParsers()->getParsers() as $parser) {
            if ($parser instanceof Twig_TokenParserInterface) {
                $tags[$parser->getTag()] = $parser;
            }
        }

        return $tags;
    }
public function getTags ( ) { $ tags = array ( ) ; foreach ( $ this -> getTokenParsers ( ) -> getParsers ( ) as $ parser ) { if ( $ parser instanceof Twig_TokenParserInterface ) { $ tags [ $ parser -> getTag ( ) ] = $ parser ; } } return $ tags ; }
Gets registered tags.

Be warned that this method cannot return tags defined by Twig_TokenParserBrokerInterface classes.

@return Twig_TokenParserInterface[] An array of Twig_TokenParserInterface instances
Gets registered tags .