Automattic\WooCommerce\Internal\Admin\Logging

PageController::get_query_param_defaults()publicWC 1.0

Get the default values for URL query params for FileV2 views.

Method of the class: PageController{}

No Hooks.

Return

String[].

Usage

$PageController = new PageController();
$PageController->get_query_param_defaults(): array;

PageController::get_query_param_defaults() code WC 9.3.3

public function get_query_param_defaults(): array {
	return array(
		'file_id' => '',
		'order'   => $this->file_controller::DEFAULTS_GET_FILES['order'],
		'orderby' => $this->file_controller::DEFAULTS_GET_FILES['orderby'],
		'search'  => '',
		'source'  => $this->file_controller::DEFAULTS_GET_FILES['source'],
		'view'    => 'list_files',
	);
}