class FontAsset implements Asset, HtmlRenderable

Font asset.

Properties

$mimeType

Methods

__construct(string $url, string|null $file = null, string|null $mimeType = null, string|null $integrity = 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 18
__construct(string $url, string|null $file = null, string|null $mimeType = null, string|null $integrity = null)

No description

Parameters

string $url
string|null $file
string|null $mimeType
string|null $integrity

at line 29
string __toString()

Allows direct echoing of the object to get the URL.

Return Value

string

at line 35
Html getImportElement()

Returns HTML tag name and attributes for rendering the asset.

Return Value

Html

at line 48
Html getPreloadElement()

Returns HTML tag name and attributes for preloading the asset.

Return Value

Html