SourceHostProvider
final readonly class \
Data provider for source hosts in sys_redirect records
Internal
Table of Contents
Methods
- __construct() : mixed
- getAccessibleHosts() : array<int, non-empty-string>
- Get the hosts of all bases and base variants of the sites the current backend user has access to, including the wildcard host, regardless of the variant resolved in the current context.
- getHosts() : array<int, non-empty-string>
- Get all available hosts for current backend user, as resolved in the current context.
Methods
__construct()
public
__construct(SiteFinder $siteFinder, FrontendInterface $cache) : mixed
Parameters
- $siteFinder : SiteFinder
- $cache : FrontendInterface
getAccessibleHosts()
Get the hosts of all bases and base variants of the sites the current backend user has access to, including the wildcard host, regardless of the variant resolved in the current context.
public
getAccessibleHosts() : array<int, non-empty-string>
Return values
array<int, non-empty-string>getHosts()
Get all available hosts for current backend user, as resolved in the current context.
public
getHosts([bool $includeWildcard = false ]) : array<int, non-empty-string>
Parameters
- $includeWildcard : bool = false