Skip to content

Kirby 4.5.0

Url::toTemplateAsset()

Creates an absolute Url to a template asset if it exists.

Url::toTemplateAsset(string $assetPath, string $extension): string|null

Parameters

Name Type Default
$assetPath * string
$extension * string

Return type

string|null

Parent class

Kirby\Cms\Url