function umami_preprocess_block__bundle__footer_promo_block
Same name and namespace in other branches
- 10 core/profiles/demo_umami/themes/umami/umami.theme \umami_preprocess_block__bundle__footer_promo_block()
Implements hook_umami_preprocess_block__bundle__footer_promo_block().
File
-
core/
profiles/ demo_umami/ themes/ umami/ umami.theme, line 88
Code
function umami_preprocess_block__bundle__footer_promo_block(&$variables) {
if (isset($variables['content']['field_content_link'])) {
foreach (Element::children($variables['content']['field_content_link']) as $key) {
$variables['content']['field_content_link'][$key]['#attributes']['class'][] = 'footer-block__link';
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.