$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
| Type | Description |
|---|---|
Kirby\Exception\NotFoundException |