AdminRouteFactory
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- create() : RouteList
- filterIn() : array<string, mixed>|null
- Translates the pretty URL segments to the target presenter and action.
- filterOut() : array<string, mixed>|null
- Translates the target presenter and action to pretty URL segments.
- stringParam() : string|null
- Reads a route parameter as a string, or returns null when it is not a string.
Properties
$hrefTranslator read-only
private
AdminPageHrefTranslator
$hrefTranslator
Methods
__construct()
public
__construct(AdminPageHrefTranslator $hrefTranslator) : mixed
Parameters
- $hrefTranslator : AdminPageHrefTranslator
create()
public
create() : RouteList
Return values
RouteListfilterIn()
Translates the pretty URL segments to the target presenter and action.
private
filterIn(array<string, mixed> $params) : array<string, mixed>|null
Parameters
- $params : array<string, mixed>
Return values
array<string, mixed>|null —null when no page matches, so the next route is tried
filterOut()
Translates the target presenter and action to pretty URL segments.
private
filterOut(array<string, mixed> $params) : array<string, mixed>|null
Parameters
- $params : array<string, mixed>
Return values
array<string, mixed>|null —null when the page has no pretty URL, so the fallback route is used
stringParam()
Reads a route parameter as a string, or returns null when it is not a string.
private
stringParam(array<string, mixed> $params, string $key) : string|null
Parameters
- $params : array<string, mixed>
- $key : string