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