You are here

public function CommentAccess::__construct in Comment Permissions 8

CommentAccess constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\comment\CommentManagerInterface $comment_manager: The comment manager.

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

File

src/Access/CommentAccess.php, line 54

Class

CommentAccess
Comment types additional overrides for access checks.

Namespace

Drupal\comment_perm\Access

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, CommentManagerInterface $comment_manager, AccountProxyInterface $current_user) {
  $this->entityTypeManager = $entity_type_manager;
  $this->commentManager = $comment_manager;
  $this->currentUser = $current_user;
}