public function addCSS($fileName, $attributes = [], $filters = [])
    {
        $tag = "";

        $url = $this->assetsResolver->resolveAssetURL($this->module->getCode(), $fileName, "css", $this->parser, $filters);

        if ("" !== $url) {
            $tags   = array();
            $tags[] = '<link rel="stylesheet" type="text/css" ';
            $tags[] = ' href="' . $url . '" ';
            foreach ($attributes as $name => $val) {
                if (\is_string($name) && !\in_array($name, [ "href", "rel", "type" ])) {
                    $tags[] = $name . '="' . $val . '" ';
                }
            }
            $tags[] = "/>";
            $tag    = implode($tags);
        }

        return $tag;
    }
public function addCSS($fileName, $attributes = [], $filters = [])
    {
        $tag = "";

        $url = $this->assetsResolver->resolveAssetURL($this->module->getCode(), $fileName, "css", $this->parser, $filters);

        if ("" !== $url) {
            $tags   = array();
            $tags[] = '<link rel="stylesheet" type="text/css" ';
            $tags[] = ' href="' . $url . '" ';
            foreach ($attributes as $name => $val) {
                if (\is_string($name) && !\in_array($name, [ "href", "rel", "type" ])) {
                    $tags[] = $name . '="' . $val . '" ';
                }
            }
            $tags[] = "/>";
            $tag    = implode($tags);
        }

        return $tag;
    }
public function addCSS ( $ fileName , $ attributes = [ ] , $ filters = [ ] ) { $ tag = "" ; $ url = $ this -> assetsResolver -> resolveAssetURL ( $ this -> module -> getCode ( ) , $ fileName , "css" , $ this -> parser , $ filters ) ; if ( "" !== $ url ) { $ tags = array ( ) ; $ tags [ ] = '<link rel="stylesheet" type="text/css" ' ; $ tags [ ] = ' href="' . $ url . '" ' ; foreach ( $ attributes as $ name => $ val ) { if ( \ is_string ( $ name ) && ! \ in_array ( $ name , [ "href" , "rel" , "type" ] ) ) { $ tags [ ] = $ name . '="' . $ val . '" ' ; } } $ tags [ ] = "/>" ; $ tag = implode ( $ tags ) ; } return $ tag ; }
helper function allowing you to generate the HTML link tag

@param string $fileName   the path to the css file
@param array  $attributes the attributes of the tag
@param array  $filters an array of assets processing filters (less, sass, etc.)

@return string the link tag
helper function allowing you to generate the HTML link tag