Automattic\WooCommerce\Vendor\GraphQL\Utils
SchemaExtender::extendInterfaceType
Method of the class: SchemaExtender{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->extendInterfaceType( $type ): InterfaceType;
- $type(InterfaceType) (required)
- .
SchemaExtender::extendInterfaceType() SchemaExtender::extendInterfaceType code WC 10.9.1
protected function extendInterfaceType(InterfaceType $type): InterfaceType
{
/** @var array<InterfaceTypeExtensionNode> $extensionASTNodes */
$extensionASTNodes = $this->extensionASTNodes($type);
return new InterfaceType([
'name' => $type->name,
'description' => $type->description,
'interfaces' => fn (): array => $this->extendImplementedInterfaces($type),
'fields' => fn (): array => $this->extendFieldMap($type),
'resolveType' => [$type, 'resolveType'],
'astNode' => $type->astNode,
'extensionASTNodes' => $extensionASTNodes,
]);
}