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