public function WebformThemeNegotiator::applies in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Theme/WebformThemeNegotiator.php \Drupal\webform\Theme\WebformThemeNegotiator::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
- src/
Theme/ WebformThemeNegotiator.php, line 57
Class
- WebformThemeNegotiator
- Sets the admin theme on a webform that does not have a public canonical URL.
Namespace
Drupal\webform\ThemeCode
public function applies(RouteMatchInterface $route_match) {
return $this
->getActiveTheme($route_match) ? TRUE : FALSE;
}