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