function ClaroHooks::preprocessLinksActionLinks
Same name and namespace in other branches
- 11.x core/themes/claro/src/Hook/ClaroHooks.php \Drupal\claro\Hook\ClaroHooks::preprocessLinksActionLinks()
Implements hook_preprocess_HOOK() for links__action_links.
Attributes
#[Hook('preprocess_links__action_links')]
File
-
core/
themes/ claro/ src/ Hook/ ClaroHooks.php, line 1068
Class
- ClaroHooks
- Hook implementations for claro.
Namespace
Drupal\claro\HookCode
public function preprocessLinksActionLinks(&$variables) : void {
$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.