Skip to content

Kirby 5.1.3

$collections->get()

Loads a collection by name if registered

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

Parameters

Name Type Default
$namerequired string no default value
$data array [ ]

Return types

Kirby\Toolkit\Collectionornull

This method modifies the existing $collections object it is applied to and returns it again.

Parent class

Kirby\Cms\Collections