Automattic\WooCommerce\Vendor\GraphQL

GraphQL::overrideStandardTypespublic staticWC 1.0

Deprecated. It is no longer supported and may be removed in future releases. See \Automattic\WooCommerce\Vendor\GraphQL\Type\SchemaConfig::$types} or {@see \Automattic\WooCommerce\Vendor\GraphQL\Type\SchemaConfig::$typeLoader}.

Replaces standard types with types from this list (matching by name).

Standard types not listed here remain untouched.

Method of the class: GraphQL{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = GraphQL::overrideStandardTypes( $types ): void;
$types(array) (required)
.

Changelog

Deprecated prefer per-schema scalar overrides via {@see \Automattic\WooCommerce\Vendor\GraphQL\Type\SchemaConfig::$types} or {@see \Automattic\WooCommerce\Vendor\GraphQL\Type\SchemaConfig::$typeLoader}

GraphQL::overrideStandardTypes() code WC 10.9.1

public static function overrideStandardTypes(array $types): void
{
    Type::overrideStandardTypes($types);
}