You are here

public function ThemeNegotiator::applies in Gin Login 8

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match:

Return value

bool

Overrides ThemeNegotiatorInterface::applies

File

src/Theme/ThemeNegotiator.php, line 28

Class

ThemeNegotiator
Contains \Drupal\gin_login\Theme\ThemeNegotiator Credit to jimconte https://jimconte.com/blog/web/dynamic-theme-switching-in-drupal-8.

Namespace

Drupal\gin_login\Theme

Code

public function applies(RouteMatchInterface $route_match) {
  return $this
    ->negotiateRoute($route_match) ? TRUE : FALSE;
}