Automattic\WooCommerce\Internal\Api\Autogenerated
TypeRegistry{}
No Hooks.
Usage
$TypeRegistry = new TypeRegistry(); // use class methods
Methods
- public static get_interface_implementors()
TypeRegistry{} TypeRegistry{} code WC 10.9.1
class TypeRegistry {
/**
* Return all concrete types that implement interfaces.
*
* Pass this to the Schema 'types' config so that inline fragments
* (e.g. `... on VariableProduct`) are resolvable.
*
* @return array
*/
public static function get_interface_implementors(): array {
return array(
ProductVariation::get(),
ExternalProduct::get(),
VariableProduct::get(),
SimpleProduct::get(),
Coupon::get(),
);
}
}