public function ThemeNegotiatorInterface::applies in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Theme/ThemeNegotiatorInterface.php \Drupal\Core\Theme\ThemeNegotiatorInterface::applies()
- 9 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.
5 methods override ThemeNegotiatorInterface::applies()
- 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.
- DbUpdateNegotiator::applies in core/
modules/ system/ src/ Theme/ DbUpdateNegotiator.php - Whether this theme negotiator should be used to set the theme.
- HighPriorityThemeNegotiator::applies in core/
modules/ system/ tests/ modules/ theme_test/ src/ Theme/ HighPriorityThemeNegotiator.php - Whether this theme negotiator should be used to set the theme.
- TestThemeNegotiator::applies in core/
modules/ system/ tests/ modules/ menu_test/ src/ Theme/ TestThemeNegotiator.php - Whether this theme negotiator should be used to set the theme.
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\ThemeCode
public function applies(RouteMatchInterface $route_match);