public function SchedulerThemeNegotiator::applies in Scheduler 8
Same name and namespace in other branches
- 2.x src/Theme/SchedulerThemeNegotiator.php \Drupal\scheduler\Theme\SchedulerThemeNegotiator::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
- src/
Theme/ SchedulerThemeNegotiator.php, line 16
Class
- SchedulerThemeNegotiator
- Defines a theme negotiator for the Scheduler routes.
Namespace
Drupal\scheduler\ThemeCode
public function applies(RouteMatchInterface $route_match) {
// Use the Scheduler theme negotiator for the user 'scheduled' tab.
$applies = $route_match
->getRouteName() == 'view.scheduler_scheduled_content.user_page';
return $applies;
}