You are here

public function CommentLazyBuilders::__construct in Zircon Profile 8

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

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 82
Contains \Drupal\comment\CommentLazyBuilders.

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;
}