function easy_social_preprocess_block in Easy Social 8.3
Same name and namespace in other branches
- 8.4 easy_social.module \easy_social_preprocess_block()
Implements hook_preprocess_HOOK() for block.html.twig.
File
- ./
easy_social.module, line 114 - Easy Social module.
Code
function easy_social_preprocess_block(&$variables) {
// Derive the base plugin ID.
list($plugin_id) = explode(':', $variables['plugin_id'] . ':');
switch ($plugin_id) {
case 'easy_social_block':
$variables['attributes']['role'] = 'complementary';
break;
}
}