Automattic\WooCommerce\Vendor\GraphQL\Executor

ReferenceExecutor::maybeScopeContextprivateWC 1.0

Method of the class: ReferenceExecutor{}

No Hooks.

Returns

Mixed.

Usage

// private - for code of main (parent) class only
$result = $this->maybeScopeContext( $contextValue );
$contextValue(mixed) (required)
.

ReferenceExecutor::maybeScopeContext() code WC 10.9.1

private function maybeScopeContext($contextValue)
{
    if ($contextValue instanceof ScopedContext) {
        return $contextValue->clone();
    }

    return $contextValue;
}