RedirectPermissionGuard
FinalYes
Security guard to validate access to sys_redirect records for the current backend user.
Table of Contents
Methods
- __construct() : mixed
- getAllowedHosts() : array<string|int, mixed>
- isAllowedRedirect() : bool
Methods
__construct()
public
__construct(LinkService $linkService, TypoLinkCodecService $typoLinkCodecService, SourceHostProvider $sourceHostProvider, FrontendInterface $cache) : mixed
Parameters
- $linkService : LinkService
- $typoLinkCodecService : TypoLinkCodecService
- $sourceHostProvider : SourceHostProvider
- $cache : FrontendInterface
getAllowedHosts()
public
getAllowedHosts() : array<string|int, mixed>
Return values
array<string|int, mixed>isAllowedRedirect()
public
isAllowedRedirect(array<string|int, mixed> $redirect) : bool
Parameters
- $redirect : array<string|int, mixed>