function OliveroHooks::preprocessLinksComment
Implements hook_preprocess_links__comment().
Attributes
#[Hook('preprocess_links__comment')]
File
-
core/
themes/ olivero/ src/ Hook/ OliveroHooks.php, line 585
Class
- OliveroHooks
- Hook implementations for olivero.
Namespace
Drupal\olivero\HookCode
public function preprocessLinksComment(&$variables) : void {
foreach ($variables['links'] as &$link) {
$link['link']['#options']['attributes']['class'][] = 'comment__links-link';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.