function AdminDemoNegotiator::determineActiveTheme

Same name and namespace in other branches
  1. 9 core/modules/block/src/Theme/AdminDemoNegotiator.php \Drupal\block\Theme\AdminDemoNegotiator::determineActiveTheme()
  2. 8.9.x core/modules/block/src/Theme/AdminDemoNegotiator.php \Drupal\block\Theme\AdminDemoNegotiator::determineActiveTheme()
  3. 10 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\Theme

Code

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.