Bundle/FormBundle/Twig/IconExtension.php
public function renderIcon($icon, $inverted = false)
    {
        $template = $this->getIconTemplate();
        $context = [
            'icon'     => $icon,
            'inverted' => $inverted,
        ];

        return $template->renderBlock($this->iconSet, $context);
    }
public function renderIcon($icon, $inverted = false)
    {
        $template = $this->getIconTemplate();
        $context = [
            'icon'     => $icon,
            'inverted' => $inverted,
        ];

        return $template->renderBlock($this->iconSet, $context);
    }
public function renderIcon ( $ icon , $ inverted = false ) { $ template = $ this -> getIconTemplate ( ) ; $ context = [ 'icon' => $ icon , 'inverted' => $ inverted , ] ; return $ template -> renderBlock ( $ this -> iconSet , $ context ) ; }
Renders the icon.

@param string $icon
@param bool   $inverted

@return Response
Renders the icon .