Automattic\WooCommerce\Internal\Admin\Logging

PageController::get_query_param_defaultspublicWC 1.0

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

Method of the class: PageController{}

No Hooks.

Returns

String[].

Usage

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

PageController::get_query_param_defaults() code WC 10.8.1

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',
	);
}