API / Minn\Rest / Taxonomies

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
privatereadonly Minn\Rest\RestUrl $url

Promoted from the constructor.

Public

new__construct(Minn\Rest\RestUrl $url)#
methodall(): array#

Every taxonomy the surface knows, by slug.

@return array<string, array> keyed by taxonomy slug
methodfind(string $slug): ?array#

One taxonomy by slug, or null.

methodforType(string $type): array#

The taxonomies attached to a post type, in registry order. @return array<string, array>

@return array<string, array>
staticview(array $taxonomy): array#

The reference's view-context projection: the keys an anonymous reader sees.