function CommentEmptyTitleTestThemeHooks::preprocessComment
Same name and namespace in other branches
- 11.x core/modules/comment/tests/modules/comment_empty_title_test/src/Hook/CommentEmptyTitleTestThemeHooks.php \Drupal\comment_empty_title_test\Hook\CommentEmptyTitleTestThemeHooks::preprocessComment()
Implements hook_preprocess_comment().
Attributes
#[Hook('preprocess_comment')]
File
-
core/
modules/ comment/ tests/ modules/ comment_empty_title_test/ src/ Hook/ CommentEmptyTitleTestThemeHooks.php, line 17
Class
- CommentEmptyTitleTestThemeHooks
- Hook implementations for comment_empty_title_test.
Namespace
Drupal\comment_empty_title_test\HookCode
public function preprocessComment(&$variables) : void {
$variables['title'] = '';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.