API / Minn\Rest / RouteArgs

RouteArgs final class

Minn\Rest\RouteArgs · public/minn/src/Minn/Rest/RouteArgs.php · 34 lines

The argument groups a route registers with, filled the way register_rest_route fills them.

Public

staticnormalise(array $args): array#

Route arguments with the shared args folded into each endpoint.

$argsarray<string, mixed>a single handler (with 'callback') or a list of handler groups, plus optional shared 'args'
@return array{0: array<int|string, mixed>, 1: bool} the groups, and whether any lacks a permission_callback