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. 10 core/modules/system/tests/modules/menu_test/src/Theme/TestThemeNegotiator.php \Drupal\menu_test\Theme\TestThemeNegotiator::applies()
  3. 11.x 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 19

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.