public function TestThemeNegotiator::applies in Zircon Profile 8.0
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()
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 24 - Contains \Drupal\menu_test\Theme\TestThemeNegotiator.
Class
- TestThemeNegotiator
- Tests the theme negotiation functionality.
Namespace
Drupal\menu_test\ThemeCode
public function applies(RouteMatchInterface $route_match) {
return (bool) $route_match
->getParameter('inherited');
}