Automattic\WooCommerce\Internal\Admin\Settings\SettingsUIPages

ProductsSettingsPageAdapter::get_schema │ public │ WC 1.0

Build the canonical settings schema for a section.

Method of the class: ProductsSettingsPageAdapter{}

No Hooks.

Returns

array.

Usage

$ProductsSettingsPageAdapter = new ProductsSettingsPageAdapter();
$ProductsSettingsPageAdapter->get_schema( $section ): array;
$section(string) (required)
Section id. Empty string means the default section.

ProductsSettingsPageAdapter::get_schema() code WC 11.2.1

public function get_schema( string $section ): array {
	$schema = parent::get_schema( $section );

	$schema['shell']['title'] = __( 'Product settings', 'woocommerce' );

	return $schema;
}