getRouteObject(); return ($route && $route->hasOption('_custom_theme')); } /** * {@inheritdoc} */ public function determineActiveTheme(RouteMatchInterface $route_match) { return $route_match->getRouteObject()->getOption('_custom_theme'); } }