Skip to content

Kirby 4.4.1

$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