Automattic\WooCommerce\Internal\Admin\ProductForm

FormFactory::get_item_list()private staticWC 1.0

Returns list of registered items.

Method of the class: FormFactory{}

No Hooks.

Return

Array. List of registered items.

Usage

$result = FormFactory::get_item_list( $type );
$type(string) (required)
Form component type.

FormFactory::get_item_list() code WC 9.4.2

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();
}