Skip to content

Kirby 5.1.4

$collections->load()

Loads collection from php file in a given directory or from plugin extension.

$collections->load(string $name): mixed

Parameters

Name Type Default
$namerequired string no default value

Return type

mixed

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

Exceptions

Parent class

Kirby\Cms\Collections