public function CommentTypeForm::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\commentCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger, CommentManagerInterface $comment_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->logger = $logger;
$this->commentManager = $comment_manager;
}