You are here

function comment_theme in Drupal 8

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