You are here

public function CommentTypeForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/comment/src/CommentTypeForm.php \Drupal\comment\CommentTypeForm::__construct()
  2. 10 core/modules/comment/src/CommentTypeForm.php \Drupal\comment\CommentTypeForm::__construct()

Constructs a CommentTypeFormController

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_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 71

Class

CommentTypeForm
Base form handler for comment type edit forms.

Namespace

Drupal\comment

Code

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