class CommentThemeHooks
Hook implementations for comment.
Hierarchy
- class \Drupal\comment\Hook\CommentThemeHooks
Expanded class hierarchy of CommentThemeHooks
File
-
core/
modules/ comment/ src/ Hook/ CommentThemeHooks.php, line 10
Namespace
Drupal\comment\HookView 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.