public function css($aliasOrUrl, array $attributes = [])
    {
        $url = $this->getCssUrl($aliasOrUrl);
        if (!$this->included->isIncluded($url)) {
            $this->included->markAsIncluded($url);
            return new Tag('link', array_merge([
                'type' => 'text/css',
                'rel' => 'stylesheet',
                'href' => $url,
                'media' => 'all'
            ], $attributes));
        } else {
            return new DataView();
        }
    }
public function css($aliasOrUrl, array $attributes = [])
    {
        $url = $this->getCssUrl($aliasOrUrl);
        if (!$this->included->isIncluded($url)) {
            $this->included->markAsIncluded($url);
            return new Tag('link', array_merge([
                'type' => 'text/css',
                'rel' => 'stylesheet',
                'href' => $url,
                'media' => 'all'
            ], $attributes));
        } else {
            return new DataView();
        }
    }
public function css ( $ aliasOrUrl , array $ attributes = [ ] ) { $ url = $ this -> getCssUrl ( $ aliasOrUrl ) ; if ( ! $ this -> included -> isIncluded ( $ url ) ) { $ this -> included -> markAsIncluded ( $ url ) ; return new Tag ( 'link' , array_merge ( [ 'type' => 'text/css' , 'rel' => 'stylesheet' , 'href' => $ url , 'media' => 'all' ] , $ attributes ) ) ; } else { return new DataView ( ) ; } }
Returns component that includes CSS resource to html page or
component that renders empty string if resource was already included.

@param string $aliasOrUrl CSS URL or alias
@param array $attributes
@return Tag|DataView
Returns component that includes CSS resource to html page or component that renders empty string if resource was already included .