$collections->get()
Loads a collection by name if registered
$collections->get(string $name, array $data = [ ]): Kirby\Toolkit\Collection|null
Parameters
| Name | Type | Default |
|---|---|---|
| $namerequired | string |
no default value |
| $data | array |
[ ]
|
Return types
Kirby\Toolkit\Collectionornull
This method modifies the existing $collections object it is applied to and returns it again.