public function WebformThemeNegotiator::applies in Webform 8.5
Same name and namespace in other branches
- 6.x 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 58
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;
}