WP_REST_Block_Directory_Controller
Class: Controller which provides REST endpoint for the blocks.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:17
Class: Controller which provides REST endpoint for the blocks.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:17
Method: Constructs the controller.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:22
Method: Registers the necessary REST API routes.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:30
Method: Checks whether a given request has permission to install and activate plugins.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:54
Method: Search and retrieve blocks metadata
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:74
Method: Parse block metadata for a block, and prepare it for an API response.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:118
Method: Generates a list of links to include in the response for the plugin.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:167
Method: Finds an installed plugin for the given slug.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:194
Method: Retrieves the theme’s schema, conforming to JSON Schema.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:215
Method: Retrieves the search params for the blocks collection.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:305
Filter Hook: Filters REST API collection parameters for the block directory controller.
Source: wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php:326