public CommentForm::__construct(EntityManagerInterface $entity_manager, AccountInterface $current_user, RendererInterface $renderer)
Constructs a new CommentForm.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
Overrides ContentEntityForm::__construct
File
- core/modules/comment/src/CommentForm.php, line 57
Class
- CommentForm
- Base handler for comment forms.
Namespace
Drupal\comment
Code
1 2 3 4 5 | public function __construct(EntityManagerInterface $entity_manager , AccountInterface $current_user , RendererInterface $renderer ) { parent::__construct( $entity_manager ); $this ->currentUser = $current_user ; $this ->renderer = $renderer ; } |
Please login to continue.