function claro_preprocess_links__action_links
Same name in other branches
- 9 core/themes/claro/claro.theme \claro_preprocess_links__action_links()
- 10 core/themes/claro/claro.theme \claro_preprocess_links__action_links()
- 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 1084
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.