function claro_preprocess_links__action_links

Same name in other branches
  1. 9 core/themes/claro/claro.theme \claro_preprocess_links__action_links()
  2. 8.9.x core/themes/claro/claro.theme \claro_preprocess_links__action_links()
  3. 10 core/themes/claro/claro.theme \claro_preprocess_links__action_links()

Implements hook_preprocess_HOOK() for links__action_links.

File

core/themes/claro/claro.theme, line 1304

Code

function claro_preprocess_links__action_links(&$variables) {
    $variables['attributes']['class'][] = 'action-links';
    foreach ($variables['links'] as $delta => $link_item) {
        $variables['links'][$delta]['attributes']->addClass('action-links__item');
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.