diff --git a/core/profiles/demo_umami/themes/umami/templates/components/footer-promo-block/block--bundle--footer-promo-block.html.twig b/core/profiles/demo_umami/themes/umami/templates/components/footer-promo-block/block--bundle--footer-promo-block.html.twig index 292347b001..489dd0c2e2 100644 --- a/core/profiles/demo_umami/themes/umami/templates/components/footer-promo-block/block--bundle--footer-promo-block.html.twig +++ b/core/profiles/demo_umami/themes/umami/templates/components/footer-promo-block/block--bundle--footer-promo-block.html.twig @@ -38,12 +38,9 @@ {% block content %} {% endblock %} diff --git a/core/profiles/demo_umami/themes/umami/umami.theme b/core/profiles/demo_umami/themes/umami/umami.theme index 60d2206808..73ef30f82d 100644 --- a/core/profiles/demo_umami/themes/umami/umami.theme +++ b/core/profiles/demo_umami/themes/umami/umami.theme @@ -9,6 +9,7 @@ use Drupal\Core\Form\FormStateInterface; use Drupal\search\SearchPageInterface; use Drupal\views\Form\ViewsForm; +use Drupal\Core\Render\Element; /** * Implements hook_preprocess_HOOK() for HTML document templates. @@ -63,6 +64,17 @@ function umami_theme_suggestions_block_alter(array &$suggestions, array $variabl } } +/** + * Implements hook_umami_preprocess_block__bundle__footer_promo_block(). + */ +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-promo-block__link'; + } + } +} + /** * Implements hook_preprocess_breadcrumb(). */