Retrieves the index for a namespace.
public get_namespace_index ( WP_REST_Request $request ) : WP_REST_Response | WP_Error | ||
$request | WP_REST_Request | REST request instance. |
return | WP_REST_Response | WP_Error | WP_REST_Response instance if the index was found, WP_Error if the namespace isn't set. |