function forum_preprocess_block in Drupal 9
Same name and namespace in other branches
- 8 core/modules/forum/forum.module \forum_preprocess_block()
Implements hook_preprocess_HOOK() for block templates.
File
- core/
modules/ forum/ forum.module, line 353 - Provides discussion forums.
Code
function forum_preprocess_block(&$variables) {
if ($variables['configuration']['provider'] == 'forum') {
$variables['attributes']['role'] = 'navigation';
}
}