You are here

public function NodeAddAccessCheck::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/src/Access/NodeAddAccessCheck.php \Drupal\node\Access\NodeAddAccessCheck::__construct()

Constructs a EntityCreateAccessCheck object.

Parameters

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

File

core/modules/node/src/Access/NodeAddAccessCheck.php, line 38

Class

NodeAddAccessCheck
Determines access to for node add pages.

Namespace

Drupal\node\Access

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}