You are here

public function GlazedSettingsThemeNegotiator::applies in Glazed Theme Helper 8

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/GlazedSettingsThemeNegotiator.php, line 16

Class

GlazedSettingsThemeNegotiator
Forces theme settings forms to use the Theme that is being configured

Namespace

Drupal\glazed_helper\Theme

Code

public function applies(RouteMatchInterface $route_match) {
  $route = $route_match
    ->getRouteObject();
  return $route && $route
    ->getPath() == '/admin/appearance/settings/{theme}';
}