Automattic\WooCommerce\Vendor\GraphQL\Type
SchemaValidationContext::reportError
Method of the class: SchemaValidationContext{}
No Hooks.
Returns
null. Nothing (null).
Usage
$SchemaValidationContext = new SchemaValidationContext(); $SchemaValidationContext->reportError( $message, $nodes ): void;
- $message(string) (required)
- .
- $nodes(array<Node|null>|Node|null)
- .
Default:null
SchemaValidationContext::reportError() SchemaValidationContext::reportError code WC 10.9.1
public function reportError(string $message, $nodes = null): void
{
$nodes = array_filter(is_array($nodes) ? $nodes : [$nodes]);
$this->addError(new Error($message, $nodes));
}