protected function findRenderer(TagInterface $tag)
    {
        foreach ($this->getRenderers() as $renderer) {
            if ($renderer->validate($tag)) {
                return $renderer;
            }
        }

        throw $this->buildRuntimeTagRendererException($tag);
    }
protected function findRenderer(TagInterface $tag)
    {
        foreach ($this->getRenderers() as $renderer) {
            if ($renderer->validate($tag)) {
                return $renderer;
            }
        }

        throw $this->buildRuntimeTagRendererException($tag);
    }
protected function findRenderer ( TagInterface $ tag ) { foreach ( $ this -> getRenderers ( ) as $ renderer ) { if ( $ renderer -> validate ( $ tag ) ) { return $ renderer ; } } throw $ this -> buildRuntimeTagRendererException ( $ tag ) ; }
Find the template tag renderer.

@param TagInterface $tag The template tag

@throws RuntimeTagRendererException When no template tag renderer has been found

@return TagRendererInterface
Find the template tag renderer .