function TestThemeNegotiator::applies

Same name in other branches
  1. 9 core/modules/system/tests/modules/menu_test/src/Theme/TestThemeNegotiator.php \Drupal\menu_test\Theme\TestThemeNegotiator::applies()
  2. 8.9.x core/modules/system/tests/modules/menu_test/src/Theme/TestThemeNegotiator.php \Drupal\menu_test\Theme\TestThemeNegotiator::applies()
  3. 10 core/modules/system/tests/modules/menu_test/src/Theme/TestThemeNegotiator.php \Drupal\menu_test\Theme\TestThemeNegotiator::applies()

Overrides ThemeNegotiatorInterface::applies

File

core/modules/system/tests/modules/menu_test/src/Theme/TestThemeNegotiator.php, line 21

Class

TestThemeNegotiator
Tests the theme negotiation functionality.

Namespace

Drupal\menu_test\Theme

Code

public function applies(RouteMatchInterface $route_match) {
    return (bool) $route_match->getParameter('inherited');
}

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