function CommentTypeForm::__construct

Same name in other branches
  1. 9 core/modules/comment/src/CommentTypeForm.php \Drupal\comment\CommentTypeForm::__construct()
  2. 8.9.x core/modules/comment/src/CommentTypeForm.php \Drupal\comment\CommentTypeForm::__construct()
  3. 11.x core/modules/comment/src/CommentTypeForm.php \Drupal\comment\CommentTypeForm::__construct()

Constructs a CommentTypeFormController.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Psr\Log\LoggerInterface $logger: A logger instance.

\Drupal\comment\CommentManagerInterface $comment_manager: The comment manager.

File

core/modules/comment/src/CommentTypeForm.php, line 63

Class

CommentTypeForm
Base form handler for comment type edit forms.

Namespace

Drupal\comment

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger, CommentManagerInterface $comment_manager) {
    $this->entityTypeManager = $entity_type_manager;
    $this->logger = $logger;
    $this->commentManager = $comment_manager;
}

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