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