$api->collection()
Setter and getter for an API collection
Parameters
Name | Type | Default |
---|---|---|
$name * | string |
– |
$collection | Kirby\Toolkit\Collection |array |null |
null |
Return type
Exceptions
Type | Description |
---|---|
Kirby\Exception\NotFoundException |
If no collection for $name exists |
Exception |
Parent class
Kirby\Cms\Api
inherited from Kirby\Api\Api