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

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