function forum_preprocess_block in Drupal 8
Same name and namespace in other branches
- 9 core/modules/forum/forum.module \forum_preprocess_block()
- 10 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';
}
}