function CommentLazyBuilders::__construct
Same name and namespace in other branches
- 11.x core/modules/comment/src/CommentLazyBuilders.php \Drupal\comment\CommentLazyBuilders::__construct()
- 10 core/modules/comment/src/CommentLazyBuilders.php \Drupal\comment\CommentLazyBuilders::__construct()
- 9 core/modules/comment/src/CommentLazyBuilders.php \Drupal\comment\CommentLazyBuilders::__construct()
- 8.9.x core/modules/comment/src/CommentLazyBuilders.php \Drupal\comment\CommentLazyBuilders::__construct()
Constructs a new CommentLazyBuilders object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.
\Drupal\Core\Entity\EntityFormBuilderInterface $entityFormBuilder: The entity form builder service.
\Drupal\Core\Session\AccountInterface $currentUser: The current logged in user.
\Drupal\comment\CommentManagerInterface $commentManager: The comment manager service.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
File
-
core/
modules/ comment/ src/ CommentLazyBuilders.php, line 39
Class
- CommentLazyBuilders
- Defines a service for comment #lazy_builder callbacks.
Namespace
Drupal\commentCode
public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected EntityFormBuilderInterface $entityFormBuilder, protected AccountInterface $currentUser, protected CommentManagerInterface $commentManager, protected ModuleHandlerInterface $moduleHandler, protected RendererInterface $renderer) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.