AMP_Base_Sanitizer::prepare_validation_error

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

Description #

Prepare validation error.


Parameters #

$error

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

Default value:array()

$data

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

Default value:array()


Return #

(array) Error.