Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. comment.install

function comment_install

Implements hook_install().

File

core/modules/comment/comment.install, line 27

Code

function comment_install() : void {
    // By default, maintain entity statistics for comments.
    // @see \Drupal\comment\CommentStatisticsInterface
    \Drupal::state()->set('comment.maintain_entity_statistics', TRUE);
}
RSS feed
Powered by Drupal