Validations::option()
Validates if the field value is in defined options
Parameters
Name | Type | Default |
---|---|---|
$field * | Kirby\Form\Field |Kirby\Form\FieldClass |
– |
$value * | – |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |