PrepareOrRedirectArgumentTrait uses trait:short
Table of Contents
Properties
- $redirects : array<string|int, mixed>
- The redirects settings.
Methods
- initializeRedirects() : void
- Initialize the redirects property.
- prepareOrRedirectArgument() : mixed
- Prepares an argument and redirects it if possible.
Properties
$redirects
The redirects settings.
public
array<string|int, mixed>
$redirects
= []
Methods
initializeRedirects()
Initialize the redirects property.
public
initializeRedirects([array<string|int, mixed> $init = [] ]) : void
Parameters
- $init : array<string|int, mixed> = []
prepareOrRedirectArgument()
Prepares an argument and redirects it if possible.
public
prepareOrRedirectArgument(string|null $id, string|null $redirectID) : mixed
Parameters
- $id : string|null
- $redirectID : string|null