public function VisualDiffThemeNegotiator::applies in Diff 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/
VisualDiffThemeNegotiator.php, line 36
Class
- VisualDiffThemeNegotiator
- Visual inline layout theme negotiator.
Namespace
Drupal\diffCode
public function applies(RouteMatchInterface $routeMatch) {
if ($routeMatch
->getParameter('filter') !== 'visual_inline') {
return FALSE;
}
if (!$this
->isDiffRoute($routeMatch)) {
return FALSE;
}
if ($this->configFactory
->get('diff.settings')
->get('general_settings.visual_inline_theme') !== 'default') {
return FALSE;
}
return TRUE;
}