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
array
Array of error strings
InputfieldWrapper methods and properties
API reference based on ProcessWire core version 3.0.236