Automattic\WooCommerce\Internal\Admin\ProductForm
FormFactory::get_item_list
Returns list of registered items.
Method of the class: FormFactory{}
No Hooks.
Returns
Array. List of registered items.
Usage
$result = FormFactory::get_item_list( $type );
- $type(string) (required)
- Form component type.
FormFactory::get_item_list() FormFactory::get item list code WC 10.3.5
private static function get_item_list( $type ) {
$mapping = array(
'field' => self::$form_fields,
'subsection' => self::$form_subsections,
'section' => self::$form_sections,
'tab' => self::$form_tabs,
);
if ( array_key_exists( $type, $mapping ) ) {
return $mapping[ $type ];
}
return array();
}