Automattic\WooCommerce\Vendor\GraphQL\Error

ProvidesExtensions{}interfaceWC 1.0

Implementing HasExtensions allows this error to provide additional data to clients.

No Hooks.

Usage

$ProvidesExtensions = new ProvidesExtensions();
// use class methods

Methods

  1. public getExtensions()

ProvidesExtensions{} code WC 10.9.1

interface ProvidesExtensions
{
    /**
     * Data to include within the "extensions" key of the formatted error.
     *
     * @return array<string, mixed>|null
     */
    public function getExtensions(): ?array;
}