function AdminDemoNegotiator::determineActiveTheme
Same name in other branches
- 8.9.x core/modules/block/src/Theme/AdminDemoNegotiator.php \Drupal\block\Theme\AdminDemoNegotiator::determineActiveTheme()
- 10 core/modules/block/src/Theme/AdminDemoNegotiator.php \Drupal\block\Theme\AdminDemoNegotiator::determineActiveTheme()
- 11.x core/modules/block/src/Theme/AdminDemoNegotiator.php \Drupal\block\Theme\AdminDemoNegotiator::determineActiveTheme()
Overrides ThemeNegotiatorInterface::determineActiveTheme
File
-
core/
modules/ block/ src/ Theme/ AdminDemoNegotiator.php, line 23
Class
- AdminDemoNegotiator
- Negotiates the theme for the block admin demo page via the URL.
Namespace
Drupal\block\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
// We return exactly what was passed in, to guarantee that the page will
// always be displayed using the theme whose blocks are being configured.
return $route_match->getParameter('theme');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.