You are here

function opigno_dashboard_preprocess_page_title in Opigno dashboard 8

Implements hook_preprocess_page_title().

File

./opigno_dashboard.module, line 305
Contains opigno_dashboard.module.

Code

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