public function LBATAdminNegotiator::determineActiveTheme in Layout builder admin theme 8
Determine the active theme for the request.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object.
Return value
string|null The name of the theme, or NULL if other negotiators, like the configured default one, should be used instead.
Overrides ThemeNegotiatorInterface::determineActiveTheme
File
- src/
Theme/ LBATAdminNegotiator.php, line 79
Class
- LBATAdminNegotiator
- Forces the admin theme when using layout builder.
Namespace
Drupal\layout_builder_admin_theme\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return $this->configFactory
->get('system.theme')
->get('admin');
}