public function addCss($handle = null, $src = null, $dependency = null, array $attributes = [])
    {
        // Set default media attribute
        if (!isset($attributes['media'])) {
            $attributes['media'] = 'all';
        }

        return $this->styles[$handle] = new Css($handle, $src, $dependency, $attributes);
    }
public function addCss($handle = null, $src = null, $dependency = null, array $attributes = [])
    {
        // Set default media attribute
        if (!isset($attributes['media'])) {
            $attributes['media'] = 'all';
        }

        return $this->styles[$handle] = new Css($handle, $src, $dependency, $attributes);
    }
public function addCss ( $ handle = null , $ src = null , $ dependency = null , array $ attributes = [ ] ) { // Set default media attribute if ( ! isset ( $ attributes [ 'media' ] ) ) { $ attributes [ 'media' ] = 'all' ; } return $ this -> styles [ $ handle ] = new Css ( $ handle , $ src , $ dependency , $ attributes ) ; }
CSS wrapper.

Gets or sets CSS assets

@param string       $handle     Asset name.
@param string       $src        Asset source
@param array|string $dependency Dependencies
@param array        $attributes Attributes for the <link /> element

@return AssetElementInterface Setting returns asset array, getting returns asset HTML
CSS wrapper .