You are here

public function TestThemeNegotiator::applies in Drupal 9

Same name and namespace in other branches
  1. 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 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');
}