Automattic\WooCommerce\Vendor\GraphQL\Utils

SchemaExtender::extendpublic staticWC 1.0

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

Хуков нет.

Возвращает

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

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

$result = SchemaExtender::extend( $schema, $documentAST, $options, ?callable $typeConfigDecorator, ?callable $fieldConfigDecorator ): Schema;
$schema(Schema) (обязательный)
.
$documentAST(DocumentNode) (обязательный)
.
$options(массив)
.
По умолчанию: []
?callable $typeConfigDecorator
.
По умолчанию: null
?callable $fieldConfigDecorator
.
По умолчанию: null

Код SchemaExtender::extend() WC 11.0.1

public static function extend(
    Schema $schema,
    DocumentNode $documentAST,
    array $options = [],
    ?callable $typeConfigDecorator = null,
    ?callable $fieldConfigDecorator = null
): Schema {
    return (new static())->doExtend($schema, $documentAST, $options, $typeConfigDecorator, $fieldConfigDecorator);
}