class CommentThemeHooks

Hook implementations for comment.

Hierarchy

Expanded class hierarchy of CommentThemeHooks

File

core/modules/comment/src/Hook/CommentThemeHooks.php, line 10

Namespace

Drupal\comment\Hook
View source
class CommentThemeHooks {
  
  /**
   * Implements hook_preprocess_HOOK() for block templates.
   */
  public function preprocessBlock(&$variables) : void {
    if ($variables['configuration']['provider'] == 'comment') {
      $variables['attributes']['role'] = 'navigation';
    }
  }

}

Members

Title Sort descending Modifiers Object type Summary
CommentThemeHooks::preprocessBlock public function Implements hook_preprocess_HOOK() for block templates.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.