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