public CommentLazyBuilders::__construct(EntityManagerInterface $entity_manager, EntityFormBuilderInterface $entity_form_builder, AccountInterface $current_user, CommentManagerInterface $comment_manager, ModuleHandlerInterface $module_handler, RendererInterface $renderer)
Constructs a new CommentLazyBuilders object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity 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 77
 
Class
- CommentLazyBuilders
 - Defines a service for comment #lazy_builder callbacks.
 
Namespace
Drupal\comment
Code
public function __construct(EntityManagerInterface $entity_manager, EntityFormBuilderInterface $entity_form_builder, AccountInterface $current_user, CommentManagerInterface $comment_manager, ModuleHandlerInterface $module_handler, RendererInterface $renderer) {
  $this->entityManager = $entity_manager;
  $this->entityFormBuilder = $entity_form_builder;
  $this->currentUser = $current_user;
  $this->commentManager = $comment_manager;
  $this->moduleHandler = $module_handler;
  $this->renderer = $renderer;
}
Please login to continue.