function OliveroHooks::preprocessLinksComment

Same name and namespace in other branches
  1. main core/themes/olivero/src/Hook/OliveroHooks.php \Drupal\olivero\Hook\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\Hook

Code

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.