Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
UnionType::resolveValue
Method of the class: UnionType{}
No Hooks.
Returns
null. Nothing (null).
Usage
$UnionType = new UnionType(); $UnionType->resolveValue( $objectValue, $context, $info );
- $objectValue(required)
- .
- $context(required)
- .
- $info(ResolveInfo) (required)
- .
UnionType::resolveValue() UnionType::resolveValue code WC 10.9.1
public function resolveValue($objectValue, $context, ResolveInfo $info)
{
if (isset($this->config['resolveValue'])) {
return ($this->config['resolveValue'])($objectValue, $context, $info);
}
return $objectValue;
}