function statistics_preprocess_block

Implements hook_preprocess_HOOK() for block.html.twig.

File

drupal/core/modules/statistics/statistics.module, line 242
Logs and displays content statistics for a site.

Code

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