Automattic\WooCommerce\Vendor\GraphQL\Executor

ScopedContext{}interfaceWC 1.0

When the object passed as $contextValue to Automattic\WooCommerce\Vendor\GraphQL execution implements this, its clone() method will be called before passing the context down to a field. This allows passing information to child fields in the query tree without affecting sibling or parent fields.

No Hooks.

Usage

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

Methods

  1. public clone()

ScopedContext{} code WC 10.9.1

interface ScopedContext
{
    public function clone(): self;
}