You are here

function opigno_calendar_preprocess_page_title in Opigno calendar 3.x

Same name and namespace in other branches
  1. 8 opigno_calendar.module \opigno_calendar_preprocess_page_title()

Implements hook_preprocess_page_title().

File

./opigno_calendar.module, line 352
Contains opigno_calendar.module.

Code

function opigno_calendar_preprocess_page_title(&$variables) {
  if (\Drupal::routeMatch()
    ->getRouteName() == 'view.opigno_calendar.page_month') {
    $variables['title']['#allowed_tags'][] = 'span';
    $variables['title']['#markup'] = '<span class="sr-only">' . $variables['title']['#markup'] . '</span>';
  }
}