public function AjaxCommentsController::__construct in AJAX Comments 8
Constructs a AjaxCommentsController object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Render\RendererInterface $renderer: The render service.
\Symfony\Component\Routing\RouterInterface $router: The Router service.
\Drupal\ajax_comments\TempStore $temp_store: The TempStore service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The Messenger service.
File
- src/
Controller/ AjaxCommentsController.php, line 91
Class
- AjaxCommentsController
- Controller routines for AJAX comments routes.
Namespace
Drupal\ajax_comments\ControllerCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user, RendererInterface $renderer, RouterInterface $router, TempStore $temp_store, MessengerInterface $messenger) {
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $current_user;
$this->renderer = $renderer;
$this->router = $router;
$this->tempStore = $temp_store;
$this->messenger = $messenger;
}