You are here

public function CommentViewBuilder::__construct in Zircon Profile 8

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

Constructs a new CommentViewBuilder.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

Overrides EntityViewBuilder::__construct

File

core/modules/comment/src/CommentViewBuilder.php, line 44
Contains \Drupal\comment\CommentViewBuilder.

Class

CommentViewBuilder
Render controller for comments.

Namespace

Drupal\comment

Code

public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, AccountInterface $current_user) {
  parent::__construct($entity_type, $entity_manager, $language_manager);
  $this->currentUser = $current_user;
}