Parsed: 129931

<?php

/**
 * REST API: WP_REST_Widgets_Controller class
 *
 * @package WordPress
 * @subpackage REST_API
 * @since 5.8.0
 */

/* class WP_REST_Widgets_Controller */
/* function WP_REST_Widgets_Controller::__construct() – Widgets controller constructor. */
/* function WP_REST_Widgets_Controller::register_routes() – Registers the widget routes for the controller. */
/* function WP_REST_Widgets_Controller::get_items_permissions_check() – Checks if a given request has access to get widgets. */
/* function WP_REST_Widgets_Controller::get_items() – Retrieves a collection of widgets. */
/* function WP_REST_Widgets_Controller::get_item_permissions_check() – Checks if a given request has access to get a widget. */
/* function WP_REST_Widgets_Controller::check_read_sidebar_permission() – Checks if a sidebar can be read publicly. */
/* function WP_REST_Widgets_Controller::get_item() – Gets an individual widget. */
/* function WP_REST_Widgets_Controller::create_item_permissions_check() – Checks if a given request has access to create widgets. */
/* function WP_REST_Widgets_Controller::create_item() – Creates a widget. */
/* function WP_REST_Widgets_Controller::update_item_permissions_check() – Checks if a given request has access to update widgets. */
/* function WP_REST_Widgets_Controller::update_item() – Updates an existing widget. */
/* function WP_REST_Widgets_Controller::delete_item_permissions_check() – Checks if a given request has access to delete widgets. */
/* function WP_REST_Widgets_Controller::delete_item() – Deletes a widget. */
/* function WP_REST_Widgets_Controller::permissions_check() – Performs a permissions check for managing widgets. */
/* function WP_REST_Widgets_Controller::retrieve_widgets() – Looks for "lost" widgets once per request. */
/* function WP_REST_Widgets_Controller::save_widget() – Saves the widget in the request object. */
/* function WP_REST_Widgets_Controller::prepare_item_for_response() – Prepares the widget for the REST response. */
/* function WP_REST_Widgets_Controller::prepare_links() – Prepares links for the widget. */
/* function WP_REST_Widgets_Controller::get_collection_params() – Gets the list of collection params. */
/* function WP_REST_Widgets_Controller::get_item_schema() – Retrieves the widget’s schema, conforming to JSON Schema. */