Automattic\WooCommerce\Internal\Api\Autogenerated
TypeRegistry{}
Хуков нет.
Использование
$TypeRegistry = new TypeRegistry(); // use class methods
Методы
- public static get_interface_implementors()
Код TypeRegistry{} TypeRegistry{} WC 11.0.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(),
);
}
}