Skip to content

Kirby 5.1.2

Assets::factory()

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

Assets::factory(Kirby\Plugin\Plugin $plugin): Kirby\Plugin\Assets

Parameters

Name Type Default
$pluginrequired Kirby\Plugin\Plugin no default value

Return type

Kirby\Plugin\Assets

Parent class

Kirby\Plugin\Assets