Skip to content

Kirby 5.1.3

$collections->has()

Checks if a collection exists

$collections->has(string $name): bool

Parameters

Name Type Default
$namerequired string no default value

Return type

bool

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

Parent class

Kirby\Cms\Collections