ShortcutAndMountPointRedirect implements MiddlewareInterface, LoggerAwareInterface uses LoggerAwareTrait

Redirects pages of type mount points, shortcuts and link to their destination.

Internal

Table of Contents

Interfaces

MiddlewareInterface
LoggerAwareInterface

Properties

$pageTypeLinkResolver  : PageTypeLinkResolver

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

Methods

process()

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

getRedirectUri()

protected getRedirectUri(ServerRequestInterface $request) : string|null
Parameters
$request : ServerRequestInterface
Return values
string|null

getRedirectUriForMountPoint()

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|null

getRedirectUriForShortcut()

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|null

getUriToCurrentPageForRedirect()

protected getUriToCurrentPageForRedirect(ServerRequestInterface $request) : string
Parameters
$request : ServerRequestInterface
Return values
string

        
On this page

Search results