CommentViewBuilder::__construct

public CommentViewBuilder::__construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, AccountInterface $current_user)

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 38

Class

CommentViewBuilder
View builder handler 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;
}
doc_Drupal
2016-10-29 08:51:24
Comments
Leave a Comment

Please login to continue.