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