$structure->has()
Checks if the given object or id is in the collection
$structure->has(string|Kirby\Cms\StructureObject $key): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | stringorKirby\Cms\StructureObject |
no default value |
Return type
bool
This method modifies the existing $structure object it is applied to and returns it again.
Parent class
Kirby\Cms\Structure
inherited from Kirby\Cms\Collection