Reference

$kirby->collection()

Returns a specific user-defined collection by name. All relevant dependencies are automatically injected

$kirby->collection(string $name): void

Parameters

Name Type Default Description
$name string

Return type

void

Source code

kirby/src/Cms/App.php#L258