$field->isValid()
Validates the field content with the given validator and parameters
Parameters
Name | Type | Default | Description |
---|---|---|---|
$validator * | string |
– | |
... $arguments | mixed |
null |
A list of optional validator arguments |
Return type
bool
Aliases
You can use the following aliases for this field method in your template:
$field->v(…)
Details
For validators, see list of available validators. In addition, you can use custom validators.
Example
Some validators require additional arguments: