ScriptAsset
class ScriptAsset implements Asset, HtmlRenderable
Script asset.
Methods
__construct(string $url, string|null $mimeType = null, string|null $file = null, string|null $type = 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 $type = null, string|null $integrity = null, string|bool|null $crossorigin = null)
No description
at line 27
string
__toString()
Allows direct echoing of the object to get the URL.
at line 33
Html
getImportElement()
Returns HTML tag name and attributes for rendering the asset.
at line 44
Html
getPreloadElement()
Returns HTML tag name and attributes for preloading the asset.