Twig/DatatableTwigExtension.php
public function datatableIcon(Twig_Environment $twig, $icon, $label = '')
    {
        if ($icon)
            return $twig->render('SgDatatablesBundle:Action:icon.html.twig', array('icon' => $icon, 'label' => $label));
        else
            return $label;
    }
public function datatableIcon(Twig_Environment $twig, $icon, $label = '')
    {
        if ($icon)
            return $twig->render('SgDatatablesBundle:Action:icon.html.twig', array('icon' => $icon, 'label' => $label));
        else
            return $label;
    }
public function datatableIcon ( Twig_Environment $ twig , $ icon , $ label = '' ) { if ( $ icon ) return $ twig -> render ( 'SgDatatablesBundle:Action:icon.html.twig' , array ( 'icon' => $ icon , 'label' => $ label ) ) ; else return $ label ; }
Renders icon && label.

@param Twig_Environment $twig
@param string           $icon
@param string           $label

@return string
Renders icon && label .