public function TestThemeNegotiator::applies in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/menu_test/src/Theme/TestThemeNegotiator.php \Drupal\menu_test\Theme\TestThemeNegotiator::applies()
- 9 core/modules/system/tests/modules/menu_test/src/Theme/TestThemeNegotiator.php \Drupal\menu_test\Theme\TestThemeNegotiator::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
- core/
modules/ system/ tests/ modules/ menu_test/ src/ Theme/ TestThemeNegotiator.php, line 19
Class
- TestThemeNegotiator
- Tests the theme negotiation functionality.
Namespace
Drupal\menu_test\ThemeCode
public function applies(RouteMatchInterface $route_match) {
return (bool) $route_match
->getParameter('inherited');
}