Automattic\WooCommerce\Internal\Api\Autogenerated
RootQueryType::get
Метод класса: RootQueryType{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = RootQueryType::get(): ObjectType;
Код RootQueryType::get() RootQueryType::get WC 11.0.1
public static function get(): ObjectType {
if ( null === self::$instance ) {
self::$instance = new ObjectType(
array(
'name' => 'Query',
'fields' => fn() => array(
'products' => ListProducts::get_field_definition(),
'product' => GetProduct::get_field_definition(),
'coupon' => GetCoupon::get_field_definition(),
'coupons' => ListCoupons::get_field_definition(),
MetadataController::FIELD_NAME => MetadataController::get_field_definition(),
),
)
);
}
return self::$instance;
}