function comment_theme in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/comment.module \comment_theme()
- 6 modules/comment/comment.module \comment_theme()
- 7 modules/comment/comment.module \comment_theme()
- 9 core/modules/comment/comment.module \comment_theme()
Implements hook_theme().
File
- core/
modules/ comment/ comment.module, line 113 - Enables users to comment on published content.
Code
function comment_theme() {
return [
'comment' => [
'render element' => 'elements',
],
'field__comment' => [
'base hook' => 'field',
],
];
}