Validation template method.
In your validator implementation, check submitted value
by validator specific rules and if there is any error, call
$form->AddError with translated or not translated error message.
Return safe submitted value as result.
Validation template method.
In your validator implementation, check submitted value
by validator specific rules and if there is any error, call
$form->AddError with translated or not translated error message.
Return safe submitted value as result.
Parameters
- $submitValue
- $fieldName
- $field
Returns
string|array
safe submitted value
Overrides