RedirectStatus implements StatusProviderInterface, RequestAwareStatusProviderInterface
Performs checks regarding redirects
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Interfaces
- StatusProviderInterface
- Interface for classes which provide a status report entry.
- RequestAwareStatusProviderInterface
- Interface for classes which provide a status report entry using information from the current request
Properties
- $backendViewFactory : BackendViewFactory
- $checkIntegrityConfiguration : CheckIntegrityConfiguration
- $redirectRepository : RedirectRepository
- $registry : Registry
Methods
- __construct() : mixed
- getLabel() : string
- Return label of this status
- getStatus() : array<string|int, Status>
- Determines the status of redirect conflicts and shows an info status in some cases in case redirects:checkintegrity was not run lately.
- getCheckIntegrityLastCheckTimestamp() : int
- getConflictingRedirects() : array<string|int, mixed>
- getConflictingRedirectsStatus() : Status
- getLanguageService() : LanguageService
- getLastCheckIntegrityStatus() : Status|null
- getNoRedirectsStatus() : Status
Properties
$backendViewFactory read-only
protected
BackendViewFactory
$backendViewFactory
$checkIntegrityConfiguration read-only
protected
CheckIntegrityConfiguration
$checkIntegrityConfiguration
$redirectRepository read-only
protected
RedirectRepository
$redirectRepository
$registry read-only
protected
Registry
$registry
Methods
__construct()
public
__construct(BackendViewFactory $backendViewFactory, RedirectRepository $redirectRepository, Registry $registry, CheckIntegrityConfiguration $checkIntegrityConfiguration) : mixed
Parameters
- $backendViewFactory : BackendViewFactory
- $redirectRepository : RedirectRepository
- $registry : Registry
- $checkIntegrityConfiguration : CheckIntegrityConfiguration
getLabel()
Return label of this status
public
getLabel() : string
Return values
stringgetStatus()
Determines the status of redirect conflicts and shows an info status in some cases in case redirects:checkintegrity was not run lately.
public
getStatus([ServerRequestInterface|null $request = null ]) : array<string|int, Status>
OK if no redirects OR no redirect conflicts WARNING if conflicts found
Additionally: INFO if checkintegrity was not run and redirects exist
Parameters
- $request : ServerRequestInterface|null = null
Return values
array<string|int, Status>getCheckIntegrityLastCheckTimestamp()
protected
getCheckIntegrityLastCheckTimestamp() : int
Return values
intgetConflictingRedirects()
protected
getConflictingRedirects() : array<string|int, mixed>
Return values
array<string|int, mixed>getConflictingRedirectsStatus()
protected
getConflictingRedirectsStatus(ServerRequestInterface $request) : Status
Parameters
- $request : ServerRequestInterface
Return values
StatusgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetLastCheckIntegrityStatus()
protected
getLastCheckIntegrityStatus() : Status|null
Return values
Status|nullgetNoRedirectsStatus()
protected
getNoRedirectsStatus(ServerRequestInterface $request) : Status
Parameters
- $request : ServerRequestInterface