Skip to content

Kirby 4.3.0

$collections->get()

Loads a collection by name if registered

$collections->get(string $name, array $data = [ ]): Kirby\Toolkit\Collection|null

Parameters

Name Type Default
$name * string
$data array [ ]

Return type

Kirby\Toolkit\Collection|null

Parent class

Kirby\Cms\Collections