DefaultNegotiator
class DefaultNegotiator implements ThemeNegotiatorInterface (View source)
Determines the default theme of the site.
Properties
| protected ConfigFactoryInterface | $configFactory | The system theme config object. |
Methods
bool
applies(RouteMatchInterface $route_match)
Whether this theme negotiator should be used to set the theme.
string|null
Details
__construct(ConfigFactoryInterface $config_factory)
Constructs a DefaultNegotiator object.
bool
applies(RouteMatchInterface $route_match)
Whether this theme negotiator should be used to set the theme.
string|null
determineActiveTheme(RouteMatchInterface $route_match)
Determine the active theme for the request.