Automattic\WooCommerce\Vendor\GraphQL\Utils

BuildClientSchema::buildInterfaceDefprivateWC 1.0

Method of the class: BuildClientSchema{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->buildInterfaceDef( $interface ): InterfaceType;
$interface(array) (required)
.

BuildClientSchema::buildInterfaceDef() code WC 10.9.4

private function buildInterfaceDef(array $interface): InterfaceType
{
    return new InterfaceType([
        'name' => $interface['name'],
        'description' => $interface['description'],
        'fields' => fn (): array => $this->buildFieldDefMap($interface),
        'interfaces' => fn (): array => $this->buildImplementationsList($interface),
    ]);
}