WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Routes

AbstractRoute::get_collection_params() public WC 1.0

Retrieves the query params for the collections.

{} It's a method of the class: AbstractRoute{}

No Hooks.

Return

Array. Query parameters for the collection.

Usage

$AbstractRoute = new AbstractRoute();
$AbstractRoute->get_collection_params();

Code of AbstractRoute::get_collection_params() WC 5.7.1

public function get_collection_params() {
	return array(
		'context' => $this->get_context_param(),
	);
}