Automattic\WooCommerce\Vendor\GraphQL\Utils
BuildClientSchema::buildObjectDef
Метод класса: BuildClientSchema{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->buildObjectDef( $object ): ObjectType;
- $object(array<string, mixed>) (обязательный)
- .
Код BuildClientSchema::buildObjectDef() BuildClientSchema::buildObjectDef WC 11.0.1
private function buildObjectDef(array $object): ObjectType
{
return new ObjectType([
'name' => $object['name'],
'description' => $object['description'],
'interfaces' => fn (): array => $this->buildImplementationsList($object),
'fields' => fn (): array => $this->buildFieldDefMap($object),
]);
}