You are here

public function WebformShareThemeNegotiator::applies in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_share/src/Theme/WebformShareThemeNegotiator.php \Drupal\webform_share\Theme\WebformShareThemeNegotiator::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

modules/webform_share/src/Theme/WebformShareThemeNegotiator.php, line 38

Class

WebformShareThemeNegotiator
Sets the theme for the webform share page.

Namespace

Drupal\webform_share\Theme

Code

public function applies(RouteMatchInterface $route_match) {
  return WebformShareHelper::isPage($route_match);
}