function claro_preprocess_links__action_links

Same name and namespace in other branches
  1. 8.9.x core/themes/claro/claro.theme \claro_preprocess_links__action_links()
  2. 10 core/themes/claro/claro.theme \claro_preprocess_links__action_links()
  3. 11.x 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 1155

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.