RouteSchemas final class
Minn\Rest\RouteSchemas · public/minn/src/Minn/Rest/RouteSchemas.php · 40 lines
The item schema an OPTIONS answer describes a route by: the one its core controller registers on the runtime's server, or, where the engine keeps that controller as a dead end or answers the route itself, the schema the reference describes it by (data/rest-schemas.json), with the fields plugin code registers for the type after its own properties.
Used by 1
Constants and properties
| private | OWN = array ( '/wp/v2/font-families' => array ( 0 => 'wp_font_family', 1 => 'wp_font_family', ), '/wp/v2/font-families/(?P<id>[\\d]+)' => array ( 0 => 'wp_font_family', 1 => 'wp_font_family', ), '/wp/v2/font-families/(?P<font_family_id>[\\d]+)/font-faces' => array ( 0 => 'wp_font_face', 1 => 'wp_font_face', ), '/wp/v2/font-families/(?P<font_family_id>[\\d]+)/font-faces/(?P<id>[\\d]+)' => array ( 0 => 'wp_font_face', 1 => 'wp_font_face', ), '/wp/v2/global-styles/(?P<id>[\\/\\d+]+)' => array ( 0 => 'wp_global_styles', 1 => 'wp_global_styles', ), '/wp/v2/global-styles/(?P<parent>[\\d]+)/revisions' => array ( 0 => 'wp_global_styles-revision', 1 => 'wp_global_styles', ), '/wp/v2/global-styles/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)' => array ( 0 => 'wp_global_styles-revision', 1 => 'wp_global_styles', ), '/wp/v2/statuses' => array ( 0 => 'status', 1 => NULL, ), '/wp/v2/statuses/(?P<status>[\\w-]+)' => array ( 0 => 'status', 1 => NULL, ), '/wp/v2/font-collections' => array ( 0 => 'font-collection', 1 => NULL, ), '/wp/v2/font-collections/(?P<slug>[\\/\\w-]+)' => array ( 0 => 'font-collection', 1 => NULL, ), '/wp/v2/block-directory/search' => array ( 0 => 'block-directory-item', 1 => NULL, ), '/wp/v2/pattern-directory/patterns' => array ( 0 => 'pattern-directory-item', 1 => NULL, ), '/wp-site-health/v1/tests/background-updates' => array ( 0 => 'wp-site-health-test', 1 => NULL, ), '/wp-site-health/v1/tests/loopback-requests' => array ( 0 => 'wp-site-health-test', 1 => NULL, ), '/wp-site-health/v1/tests/https-status' => array ( 0 => 'wp-site-health-test', 1 => NULL, ), '/wp-site-health/v1/tests/dotorg-communication' => array ( 0 => 'wp-site-health-test', 1 => NULL, ), '/wp-site-health/v1/tests/authorization-header' => array ( 0 => 'wp-site-health-test', 1 => NULL, ), '/wp-block-editor/v1/navigation-fallback' => array ( 0 => 'navigation-fallback', 1 => NULL, ), ) | Each route, as the index lists it: the captured schema it is described by, and the type whose registered fields join it. |
Public
| static | for(string $route): ?array# | The schema the route is described by, or null for none. @return array<string, mixed>|null @return array<string, mixed>|null |
Nothing matches.