You are here

public function NodeAddAccessCheck::__construct in Drupal 9

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

Constructs an EntityCreateAccessCheck object.

Parameters

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

File

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

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;
}