AMP_Base_Sanitizer::prepare_validation_error

AMP_Base_Sanitizer::prepare_validation_error( array $error = array(),  array $data = array() )

Description #

Prepare validation error.


Parameters #

$error

(Optional) { Error. @type string $code Error code. }

Default value:array()

$data

(Optional) { Data. @type DOMElement|DOMNode $node The removed node. }

Default value:array()


Return #

(array) Error.