function aggregator_preprocess_block

8.x aggregator.module aggregator_preprocess_block(&$variables)

Implements hook_preprocess_HOOK() for block.html.twig.

File

drupal/core/modules/aggregator/aggregator.module, line 542
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function aggregator_preprocess_block(&$variables) {
  if ($variables['configuration']['module'] == 'aggregator') {
    $variables['attributes']['role'] = 'complementary';
  }
}