Taxonomies final class
Minn\Rest\Taxonomies · public/minn/src/Minn/Rest/Taxonomies.php · 48 lines
The taxonomy registry the wp/v2 surface describes: the core set seeded from the reference (data/taxonomies.json) with the reference's own labels, capabilities, and visibility flags.
Constants and properties
| private | ?array $taxonomies | |
| private | readonly Minn\Rest\RestUrl $url | Promoted from the constructor. |
Public
| new | __construct(Minn\Rest\RestUrl $url)# | |
| method | all(): array# | Every taxonomy the surface knows, by slug. @return array<string, array> keyed by taxonomy slug |
| method | find(string $slug): ?array# | One taxonomy by slug, or null. |
| method | forType(string $type): array# | The taxonomies attached to a post type, in registry order. @return array<string, array> @return array<string, array> |
| static | view(array $taxonomy): array# | The reference's view-context projection: the keys an anonymous reader sees. |
Nothing matches.