public function createStylesheetPaths(array $stylesheets)
    {
        $sheets = array();

        foreach ($stylesheets as $key => $sheet) {
            if (!$this->isExternalStylesheet($sheet)) {
                // assetic version removal
                $sheet = str_replace(strrchr($sheet, 'css?'), 'css', $sheet);
                $sheet = $this->getBasePath() . $sheet;
            }

            $sheets[] = $sheet;
        }

        return $sheets;
    }
public function createStylesheetPaths(array $stylesheets)
    {
        $sheets = array();

        foreach ($stylesheets as $key => $sheet) {
            if (!$this->isExternalStylesheet($sheet)) {
                // assetic version removal
                $sheet = str_replace(strrchr($sheet, 'css?'), 'css', $sheet);
                $sheet = $this->getBasePath() . $sheet;
            }

            $sheets[] = $sheet;
        }

        return $sheets;
    }
public function createStylesheetPaths ( array $ stylesheets ) { $ sheets = array ( ) ; foreach ( $ stylesheets as $ key => $ sheet ) { if ( ! $ this -> isExternalStylesheet ( $ sheet ) ) { // assetic version removal $ sheet = str_replace ( strrchr ( $ sheet , 'css?' ) , 'css' , $ sheet ) ; $ sheet = $ this -> getBasePath ( ) . $ sheet ; } $ sheets [ ] = $ sheet ; } return $ sheets ; }
Check if a stylesheet is a local stylesheet or an external stylesheet. If
it is a local stylesheet, prepend our basepath to the link so we can
properly fetch the data to insert.

@param  array $stylesheets
@return array
Check if a stylesheet is a local stylesheet or an external stylesheet . If it is a local stylesheet prepend our basepath to the link so we can properly fetch the data to insert .