function CustomThemeNegotiator::determineActiveTheme

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php \Drupal\theme_test\Theme\CustomThemeNegotiator::determineActiveTheme()
  2. 10 core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php \Drupal\theme_test\Theme\CustomThemeNegotiator::determineActiveTheme()
  3. 11.x core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php \Drupal\theme_test\Theme\CustomThemeNegotiator::determineActiveTheme()

Overrides ThemeNegotiatorInterface::determineActiveTheme

File

core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php, line 24

Class

CustomThemeNegotiator
Just forces the 'test_theme' theme.

Namespace

Drupal\theme_test\Theme

Code

public function determineActiveTheme(RouteMatchInterface $route_match) {
    return $route_match->getRouteObject()
        ->getOption('_custom_theme');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.