Automattic\WooCommerce\Internal\Admin\Settings

SettingsUIRequestContext::resolve_schema │ private │ WC 1.0

Resolve the Settings UI schema.

Method of the class: SettingsUIRequestContext{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->resolve_schema(): void;

SettingsUIRequestContext::resolve_schema() code WC 11.1.2

private function resolve_schema(): void {
	$this->schema_resolved = true;
	$this->schema          = null;

	if ( ! $this->settings_ui_page ) {
		return;
	}

	try {
		$schema       = $this->settings_ui_page->get_schema( $this->section );
		$schema       = SettingsUISchema::canonicalize_option_values( $schema );
		$schema       = $this->apply_section_navigation( $schema );
		$schema       = $this->apply_shell_header_visibility( $schema );
		$this->schema = $this->ensure_drill_down_breadcrumbs( $schema );
	} catch ( \Throwable $e ) {
		$this->schema_failed = true;

		self::log_resolution_failure( 'Settings UI schema', $this->get_page_id(), $this->section, $e, __METHOD__ );
	}
}