function NodeAddAccessCheck::__construct

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.