InputfieldWrapper::getErrors()
Return an array of errors that occurred on any of the children during input processing.
Should only be called after InputfieldWrapper::processInput().
Usage
// basic usage
$array = $inputfieldWrapper->getErrors();
// usage with all arguments
$array = $inputfieldWrapper->getErrors(bool $clear = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$clear (optional) | bool | Specify true to clear out the errors Default:false |
Return value
arrayArray of error strings
InputfieldWrapper methods and properties
API reference based on ProcessWire core version 3.0.252