concrete/src/StyleCustomizer/Stylesheet.php
public function getCss()
    {
        $parser = new \Less_Parser(
            array(
                'cache_dir' => Config::get('concrete.cache.directory'),
                'compress' => (bool) Config::get('concrete.theme.compress_preprocessor_output'),
                'sourceMap' => !Config::get('concrete.theme.compress_preprocessor_output') && (bool) Config::get('concrete.theme.generate_less_sourcemap'),
            )
        );
        $parser = $parser->parseFile($this->file, $this->sourceUriRoot);
        if (isset($this->valueList) && $this->valueList instanceof \Concrete\Core\StyleCustomizer\Style\ValueList) {
            $variables = array();
            foreach ($this->valueList->getValues() as $value) {
                $variables = array_merge($value->toLessVariablesArray(), $variables);
            }
            $parser->ModifyVars($variables);
        }
        $css = $parser->getCss();

        return $css;
    }
public function getCss()
    {
        $parser = new \Less_Parser(
            array(
                'cache_dir' => Config::get('concrete.cache.directory'),
                'compress' => (bool) Config::get('concrete.theme.compress_preprocessor_output'),
                'sourceMap' => !Config::get('concrete.theme.compress_preprocessor_output') && (bool) Config::get('concrete.theme.generate_less_sourcemap'),
            )
        );
        $parser = $parser->parseFile($this->file, $this->sourceUriRoot);
        if (isset($this->valueList) && $this->valueList instanceof \Concrete\Core\StyleCustomizer\Style\ValueList) {
            $variables = array();
            foreach ($this->valueList->getValues() as $value) {
                $variables = array_merge($value->toLessVariablesArray(), $variables);
            }
            $parser->ModifyVars($variables);
        }
        $css = $parser->getCss();

        return $css;
    }
public function getCss ( ) { $ parser = new \ Less_Parser ( array ( 'cache_dir' => Config :: get ( 'concrete.cache.directory' ) , 'compress' => ( bool ) Config :: get ( 'concrete.theme.compress_preprocessor_output' ) , 'sourceMap' => ! Config :: get ( 'concrete.theme.compress_preprocessor_output' ) && ( bool ) Config :: get ( 'concrete.theme.generate_less_sourcemap' ) , ) ) ; $ parser = $ parser -> parseFile ( $ this -> file , $ this -> sourceUriRoot ) ; if ( isset ( $ this -> valueList ) && $ this -> valueList instanceof \ Concrete \ Core \ StyleCustomizer \ Style \ ValueList ) { $ variables = array ( ) ; foreach ( $ this -> valueList -> getValues ( ) as $ value ) { $ variables = array_merge ( $ value -> toLessVariablesArray ( ) , $ variables ) ; } $ parser -> ModifyVars ( $ variables ) ; } $ css = $ parser -> getCss ( ) ; return $ css ; }
Compiles the stylesheet using LESS. If a ValueList is provided they are
injected into the stylesheet.

@return string CSS
Compiles the stylesheet using LESS . If a ValueList is provided they are injected into the stylesheet .