FormBuilderProcessor::getErrors() method
Return an array of errors that occurred (strings)
Usage
// basic usage
$array = $processor->getErrors();
// usage with all arguments
$array = $processor->getErrors(bool $all = true, bool $clear = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$all (optional) | bool | When true, all errors are included. When false, field-specific errors (displayed inline) are excluded. Default:true |
$clear (optional) | bool | Clear out all errors? Default:false added 0.4.0 |
Return value
arrayWill be blank if no errors.
$processor methods and properties
API reference based on ProcessWire core version 3.0.252