WP_REST_Revisions_Controller::get_collection_params PHP Method

get_collection_params() public method

Retrieves the query params for collections.
Since: 4.7.0
public get_collection_params ( ) : array
return array Collection parameters.
    public function get_collection_params()
    {
        return array('context' => $this->get_context_param(array('default' => 'view')));
    }