You are here

function claro_preprocess_links__action_links in Drupal 8

Same name and namespace in other branches
  1. 9 core/themes/claro/claro.theme \claro_preprocess_links__action_links()
  2. 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 1084
Functions to support theming in the Claro theme.

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');
  }
}