function umami_preprocess_block__bundle__footer_promo_block

Same name and namespace in other branches
  1. 10 core/profiles/demo_umami/themes/umami/umami.theme \umami_preprocess_block__bundle__footer_promo_block()

Implements hook_preprocess_HOOK() for block bundle footer promo.

File

core/profiles/demo_umami/themes/umami/umami.theme, line 88

Code

function umami_preprocess_block__bundle__footer_promo_block(&$variables) : void {
  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.