Automattic\WooCommerce\Internal\Admin\Settings

SettingsUIRequestContext::resolve_schema │ private │ WC 1.0

Resolve the Settings UI schema.

Метод класса: SettingsUIRequestContext{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->resolve_schema(): void;

Код SettingsUIRequestContext::resolve_schema() WC 11.2.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_schema_values( $schema );

		$schema = $this->apply_section_navigation( $schema );
		$schema = $this->apply_shell_header_visibility( $schema );
		$schema = $this->ensure_drill_down_breadcrumbs( $schema );

		SettingsUISchema::assert_valid_schema( $schema );
		$this->schema = $schema;
	} catch ( \Throwable $e ) {
		$this->schema_failed         = true;
		$this->schema_failure_reason = self::sanitize_failure_reason( $e );

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