Automattic\WooCommerce\Vendor\GraphQL\Executor
ReferenceExecutor::maybeScopeContext
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() ReferenceExecutor::maybeScopeContext code WC 10.9.1
private function maybeScopeContext($contextValue)
{
if ($contextValue instanceof ScopedContext) {
return $contextValue->clone();
}
return $contextValue;
}