AdminNegotiator
class AdminNegotiator implements ThemeNegotiatorInterface (View source)
Sets the active theme on admin pages.
Properties
| protected AccountInterface | $user | The current user. |
|
| protected ConfigFactoryInterface | $configFactory | The config factory. |
|
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
|
| protected AdminContext | $adminContext | The route admin context to determine whether a route is an admin one. |
Methods
__construct(AccountInterface $user, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, AdminContext $admin_context)
Creates a new AdminNegotiator instance.
bool
applies(RouteMatchInterface $route_match)
Whether this theme negotiator should be used to set the theme.
string|null
Details
__construct(AccountInterface $user, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, AdminContext $admin_context)
Creates a new AdminNegotiator instance.
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.