$kirby->collection()
Returns a specific user-defined collection by name. All relevant dependencies are automatically injected
Parameters
Name | Type | Default |
---|---|---|
$name * | string |
– |
$options | array |
[ ] |
Return type
Parent class
Example
Call a predefined collection by key: