validateValue() protected method
Validates a value.
A validator class can implement this method to support data validation out of the context of a data model.
protected array|null validateValue ( $file ) | ||
---|---|---|
$file | ||
return | array|null |
The error message and the parameters to be inserted into the error message. Null should be returned if the data is valid. |
throws | yii\base\NotSupportedException |
if the validator does not supporting data validation without a model |
Please login to continue.