class StyleAsset implements Asset, HtmlRenderable

Style asset.

Methods

__construct(string $url, string|null $mimeType = null, string|null $file = null, string|null $media = null, string|null $integrity = null, string|bool|null $crossorigin = null)

No description

string
__toString()

Allows direct echoing of the object to get the URL.

Html
getImportElement()

Returns HTML tag name and attributes for rendering the asset.

Html
getPreloadElement()

Returns HTML tag name and attributes for preloading the asset.

Details

at line 15
__construct(string $url, string|null $mimeType = null, string|null $file = null, string|null $media = null, string|null $integrity = null, string|bool|null $crossorigin = null)

No description

Parameters

string $url
string|null $mimeType
string|null $file
string|null $media
string|null $integrity
string|bool|null $crossorigin

at line 28
string __toString()

Allows direct echoing of the object to get the URL.

Return Value

string

at line 34
Html getImportElement()

Returns HTML tag name and attributes for rendering the asset.

Return Value

Html

at line 46
Html getPreloadElement()

Returns HTML tag name and attributes for preloading the asset.

Return Value

Html