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