public function ThemeNegotiator::applies in Style Switcher 8.2
Same name and namespace in other branches
- 3.0.x tests/modules/styleswitcher_test_theme_per_page/src/Theme/ThemeNegotiator.php \Drupal\styleswitcher_test_theme_per_page\Theme\ThemeNegotiator::applies()
Whether this theme negotiator should be used to set the theme.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object.
Return value
bool TRUE if this negotiator should be used or FALSE to let other negotiators decide.
Overrides ThemeNegotiatorInterface::applies
File
- tests/
modules/ styleswitcher_test_theme_per_page/ src/ Theme/ ThemeNegotiator.php, line 16
Class
- ThemeNegotiator
- Defines a theme negotiator that deals with the active theme on the demo page.
Namespace
Drupal\styleswitcher_test_theme_per_page\ThemeCode
public function applies(RouteMatchInterface $route_match) {
return $route_match
->getRouteName() === 'styleswitcher_test_theme_per_page.demo';
}