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

Breadcrumb

  1. Drupal Core 11.1.x
  2. CommentController.php

function CommentController::__construct

Constructs a CommentController object.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: HTTP kernel to handle requests.

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

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

File

core/modules/comment/src/Controller/CommentController.php, line 72

Class

CommentController
Controller for the comment entity.

Namespace

Drupal\comment\Controller

Code

public function __construct(HttpKernelInterface $http_kernel, CommentManagerInterface $comment_manager, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, EntityRepositoryInterface $entity_repository) {
    $this->httpKernel = $http_kernel;
    $this->commentManager = $comment_manager;
    $this->entityTypeManager = $entity_type_manager;
    $this->entityFieldManager = $entity_field_manager;
    $this->entityRepository = $entity_repository;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal