$structure->has()
Checks if the given object or id is in the collection
$structure->has(string|StructureObject $key): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | stringorKirby\Cms\StructureObject |
no default value |
Return type
bool
Parent class
Kirby\Cms\Structure
inherited from Kirby\Cms\Collection