function shortcut_preprocess_block

Implements hook_preprocess_HOOK() for block.html.twig.

File

drupal/core/modules/shortcut/shortcut.module, line 475
Allows users to manage customizable lists of shortcut links.

Code

function shortcut_preprocess_block(&$variables) {
  if ($variables['configuration']['module'] == 'shortcut') {
    $variables['attributes']['role'] = 'navigation';
  }
}