Return an array of errors that occurred (strings)
Usage
// basic usage
$array = $formBuilderProcessor->getErrors();
// usage with all arguments
$array = $formBuilderProcessor->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
array
Will be blank if no errors.
FormBuilderProcessor methods and properties
API reference based on ProcessWire core version 3.0.236