function CommentHooks::theme

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/comment/src/Hook/CommentHooks.php, line 102

Class

CommentHooks
Hook implementations for comment.

Namespace

Drupal\comment\Hook

Code

public function theme() : array {
  return [
    'comment' => [
      'render element' => 'elements',
    ],
    'field__comment' => [
      'base hook' => 'field',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.