ShortcutAndMountPointRedirect implements MiddlewareInterface, LoggerAwareInterface uses LoggerAwareTrait
Redirects pages of type mount points, shortcuts and link to their destination.
Table of Contents
Interfaces
- MiddlewareInterface
- LoggerAwareInterface
Properties
Methods
- __construct() : mixed
- process() : ResponseInterface
- getRedirectUri() : string|null
- getRedirectUriForMountPoint() : string|null
- Returns URI of target page, if the current page is an overlaid mountpoint.
- getRedirectUriForShortcut() : string|null
- Returns URI of target page, if the current page is a Shortcut.
- getUriToCurrentPageForRedirect() : string
Properties
$pageTypeLinkResolver read-only
protected
PageTypeLinkResolver
$pageTypeLinkResolver
Methods
__construct()
public
__construct(PageTypeLinkResolver $pageTypeLinkResolver) : mixed
Parameters
- $pageTypeLinkResolver : PageTypeLinkResolver
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface
Return values
ResponseInterfacegetRedirectUri()
protected
getRedirectUri(ServerRequestInterface $request) : string|null
Parameters
- $request : ServerRequestInterface
Return values
string|nullgetRedirectUriForMountPoint()
Returns URI of target page, if the current page is an overlaid mountpoint.
protected
getRedirectUriForMountPoint(ServerRequestInterface $request) : string|null
If the current page is of type mountpoint and should be overlaid with the contents of the mountpoint page and is accessed directly, the user will be redirected to the mountpoint context.
Parameters
- $request : ServerRequestInterface
Return values
string|nullgetRedirectUriForShortcut()
Returns URI of target page, if the current page is a Shortcut.
protected
getRedirectUriForShortcut(ServerRequestInterface $request) : string|null
If the current page is of type shortcut and accessed directly via its URL, the user will be redirected to shortcut target.
Parameters
- $request : ServerRequestInterface
Return values
string|nullgetUriToCurrentPageForRedirect()
protected
getUriToCurrentPageForRedirect(ServerRequestInterface $request) : string
Parameters
- $request : ServerRequestInterface