Sets the active theme on admin pages.
Hierarchy
- class \Drupal\user\Theme\AdminNegotiator implements ThemeNegotiatorInterface
File
- core/modules/user/src/Theme/AdminNegotiator.php, line 15
Namespace
Drupal\user\Theme
Members
Name | Modifiers | Type | Description |
---|---|---|---|
AdminNegotiator::$adminContext | protected | property | The route admin context to determine whether a route is an admin one. |
AdminNegotiator::$configFactory | protected | property | The config factory. |
AdminNegotiator::$entityManager | protected | property | The entity manager. |
AdminNegotiator::$user | protected | property | The current user. |
AdminNegotiator::applies | public | function | Whether this theme negotiator should be used to set the theme. Overrides ThemeNegotiatorInterface::applies |
AdminNegotiator::determineActiveTheme | public | function | Determine the active theme for the request. Overrides ThemeNegotiatorInterface::determineActiveTheme |
AdminNegotiator::__construct | public | function | Creates a new AdminNegotiator instance. |
Please login to continue.