collection()
Returns the result of a collection by name
collection(string $name, array $options = [ ]): Kirby\Toolkit\Collection|null
Parameters
Name | Type | Default |
---|---|---|
$namerequired | string |
no default value |
$options | array |
[ ]
|
Return types
Kirby\Toolkit\Collection
ornull