$procache->link() method

Generate an HTML stylesheet <link> tag with the given files

Usage

// basic usage
$string = $procache->link($files);

// usage with all arguments
$string = $procache->link($files, bool $minify = true, string $media = '');

Arguments

NameType(s)Description
filesarray, string, WireArray

Can be array of CSV string of filenames

minify (optional)bool

(default=true)

media (optional)string

Optional media attribute

Return value

string

With merged file URL


$procache methods and properties

API reference based on ProcessWire core version 3.0.244

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer