API / Minn\Http / RouteParams

RouteParams interface

Minn\Http\RouteParams · public/minn/src/Minn/Http/RouteParams.php · 10 lines

The parameters a route takes when they depend on what its captures name (a post type's collection takes its own taxonomies, its own orderby values, whatever plugins add to it), rather than on a fixed set.

Uses 1

Public

staticfor(array $captures): array#

The route's parameters for these captures, as the index publishes them; none when the captures name nothing.

$capturesarray<string, string>
@return array<string, array<string, mixed>>