You are here

public function CommentForm::__construct in Zircon Profile 8

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

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 62
Contains \Drupal\comment\CommentForm.

Class

CommentForm
Base for controller for comment forms.

Namespace

Drupal\comment

Code

public function __construct(EntityManagerInterface $entity_manager, AccountInterface $current_user, RendererInterface $renderer) {
  parent::__construct($entity_manager);
  $this->currentUser = $current_user;
  $this->renderer = $renderer;
}