Implements hook_preprocess_HOOK() for block.html.twig.
function aggregator_preprocess_block(&$variables) { if ($variables['configuration']['module'] == 'aggregator') { $variables['attributes']['role'] = 'complementary'; } }