Bundle/CoreBundle/Builder/ViewCssBuilder.php
public function generateViewCss(View $view, array $widgets)
    {
        $css = '';

        foreach ($widgets as $widget) {
            $style = $this->container->get('templating')->render(
            'VictoireCoreBundle:Widget:style/style.html.twig',
            [
                'widget'                   => $widget,
                'victoire_twig_responsive' => $this->victoireTwigResponsive,
            ]
        );
            $css .= trim($style);
        }

        if ($css !== '') {
            $this->writeCssFile($view, $css);
        }
    }
public function generateViewCss(View $view, array $widgets)
    {
        $css = '';

        foreach ($widgets as $widget) {
            $style = $this->container->get('templating')->render(
            'VictoireCoreBundle:Widget:style/style.html.twig',
            [
                'widget'                   => $widget,
                'victoire_twig_responsive' => $this->victoireTwigResponsive,
            ]
        );
            $css .= trim($style);
        }

        if ($css !== '') {
            $this->writeCssFile($view, $css);
        }
    }
public function generateViewCss ( View $ view , array $ widgets ) { $ css = '' ; foreach ( $ widgets as $ widget ) { $ style = $ this -> container -> get ( 'templating' ) -> render ( 'VictoireCoreBundle:Widget:style/style.html.twig' , [ 'widget' => $ widget , 'victoire_twig_responsive' => $ this -> victoireTwigResponsive , ] ) ; $ css .= trim ( $ style ) ; } if ( $ css !== '' ) { $ this -> writeCssFile ( $ view , $ css ) ; } }
Construct css file and write it.

@param View  $view
@param array $widgets
Construct css file and write it .