configFactory = $config_factory; } /** * {@inheritdoc} */ public function applies(RouteMatchInterface $route_match) { return $route_match->getRouteName() == 'system.db_update'; } /** * {@inheritdoc} */ public function determineActiveTheme(RouteMatchInterface $route_match) { $custom_theme = Settings::get('maintenance_theme', 'seven'); if (!$custom_theme) { $config = $this->configFactory->get('system.theme'); $custom_theme = $config->get('default'); } return $custom_theme; } }