$plugin->asset()
Returns the plugin asset object for a specific asset
$plugin->asset(string $path): Kirby\Plugin\Asset|null
Parameters
Name | Type | Default |
---|---|---|
$pathrequired | string |
no default value |
Return types
Kirby\Plugin\Asset
ornull
This method modifies the existing $plugin
object it is applied to and returns it again.