REST_Element_Types_Controller::get_collection_params()

Retrieves the query params for collections.

Description

Return

(array) Collection parameters.

Source

File: src/db-objects/elements/element-types/rest-element-types-controller.php

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

Changelog

Changelog
Version Description
1.0.0 Introduced.