Automattic\WooCommerce\Vendor\GraphQL\Utils

SchemaExtender::extendInterfaceTypeprotectedWC 1.0

Метод класса: SchemaExtender{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->extendInterfaceType( $type ): InterfaceType;
$type(InterfaceType) (обязательный)
.

Код SchemaExtender::extendInterfaceType() WC 11.0.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,
    ]);
}