You are here

function comment_theme in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/comment.module \comment_theme()
  2. 6 modules/comment/comment.module \comment_theme()
  3. 7 modules/comment/comment.module \comment_theme()
  4. 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',
    ],
  ];
}