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

NameType(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.


$processor methods and properties

API reference based on ProcessWire core version 3.0.252