You are here

public function FormModeThemeNegociator::applies in Form mode manager 8.2

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/form_mode_theme_switcher/src/Theme/FormModeThemeNegociator.php, line 68

Class

FormModeThemeNegociator
Class FormModeThemeNegociator.

Namespace

Drupal\form_mode_manager_theme_switcher\Theme

Code

public function applies(RouteMatchInterface $route_match) {
  $route = $route_match
    ->getRouteObject();
  if (!$route instanceof Route) {
    return FALSE;
  }
  return $this
    ->isApplicable($route);
}