Skip to content

Kirby 4.4.1

PluginAssets::factory()

Creates a new collection for the plugin's assets by considering the plugin's asset extension (and assets directory as fallback)

PluginAssets::factory(Kirby\Cms\Plugin $plugin): Kirby\Cms\PluginAssets

Parameters

Name Type Default
$plugin * Kirby\Cms\Plugin

Return type

Kirby\Cms\PluginAssets

Parent class

Kirby\Cms\PluginAssets