Skip to content

Kirby 5.0.4

$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\Assetornull

This method modifies the existing $plugin object it is applied to and returns it again.

Parent class

Kirby\Plugin\Plugin