function ThemeNegotiatorInterface::applies

Same name in other branches
  1. 9 core/lib/Drupal/Core/Theme/ThemeNegotiatorInterface.php \Drupal\Core\Theme\ThemeNegotiatorInterface::applies()
  2. 10 core/lib/Drupal/Core/Theme/ThemeNegotiatorInterface.php \Drupal\Core\Theme\ThemeNegotiatorInterface::applies()
  3. 11.x core/lib/Drupal/Core/Theme/ThemeNegotiatorInterface.php \Drupal\Core\Theme\ThemeNegotiatorInterface::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.

10 methods override ThemeNegotiatorInterface::applies()
AdminDemoNegotiator::applies in core/modules/block/src/Theme/AdminDemoNegotiator.php
Whether this theme negotiator should be used to set the theme.
AdminNegotiator::applies in core/modules/user/src/Theme/AdminNegotiator.php
Whether this theme negotiator should be used to set the theme.
AjaxBasePageNegotiator::applies in core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php
Whether this theme negotiator should be used to set the theme.
BatchNegotiator::applies in core/modules/system/src/Theme/BatchNegotiator.php
Whether this theme negotiator should be used to set the theme.
CustomThemeNegotiator::applies in core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php
Whether this theme negotiator should be used to set the theme.

... See full list

File

core/lib/Drupal/Core/Theme/ThemeNegotiatorInterface.php, line 34

Class

ThemeNegotiatorInterface
Defines an interface for classes which determine the active theme.

Namespace

Drupal\Core\Theme

Code

public function applies(RouteMatchInterface $route_match);

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