WordPress at a glance
function is not described

WP_REST_Themes_Controller::get_collection_params() public WP 5.0.0

Retrieves the search params for the themes collection.

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

Hooks from the method
Return

Array. Collection parameters.

Usage

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

Changelog

Since 5.0.0 Introduced.

Code of WP_REST_Themes_Controller::get_collection_params() WP 5.5.1

<?php
public function get_collection_params() {
	$query_params = parent::get_collection_params();

	$query_params['status'] = array(
		'description'       => __( 'Limit result set to themes assigned one or more statuses.' ),
		'type'              => 'array',
		'items'             => array(
			'enum' => array( 'active' ),
			'type' => 'string',
		),
		'required'          => true,
		'sanitize_callback' => array( $this, 'sanitize_theme_status' ),
	);

	/**
	 * Filter collection parameters for the themes controller.
	 *
	 * @since 5.0.0
	 *
	 * @param array $query_params JSON Schema-formatted collection parameters.
	 */
	return apply_filters( 'rest_themes_collection_params', $query_params );
}