function opigno_calendar_theme_suggestions_alter in Opigno calendar 3.x
Same name and namespace in other branches
- 8 opigno_calendar.module \opigno_calendar_theme_suggestions_alter()
Implements hook_theme_suggestions_alter().
File
- ./
opigno_calendar.module, line 156 - Contains opigno_calendar.module.
Code
function opigno_calendar_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
if (isset($variables['elements']['content']['#view_id'])) {
if (\Drupal::routeMatch()
->getRouteName() == 'view.opigno_calendar.page_month' && $variables['elements']['content']['#view_id'] == 'opigno_calendar' && $hook == 'block') {
$suggestions[] = 'block__opigno_calendar';
}
}
}