You are here

public function CommentLazyBuilders::__construct in Drupal 8

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

Constructs a new CommentLazyBuilders object.

Parameters

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

\Drupal\Core\Entity\EntityFormBuilderInterface $entity_form_builder: The entity form builder service.

\Drupal\Core\Session\AccountInterface $current_user: The current logged in user.

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

File

core/modules/comment/src/CommentLazyBuilders.php, line 86

Class

CommentLazyBuilders
Defines a service for comment #lazy_builder callbacks.

Namespace

Drupal\comment

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFormBuilderInterface $entity_form_builder, AccountInterface $current_user, CommentManagerInterface $comment_manager, ModuleHandlerInterface $module_handler, RendererInterface $renderer) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFormBuilder = $entity_form_builder;
  $this->currentUser = $current_user;
  $this->commentManager = $comment_manager;
  $this->moduleHandler = $module_handler;
  $this->renderer = $renderer;
}