Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityCreateAnyAccessCheck.php

function EntityCreateAnyAccessCheck::__construct

Constructs an EntityCreateAnyAccessCheck object.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

File

core/lib/Drupal/Core/Entity/EntityCreateAnyAccessCheck.php, line 46

Class

EntityCreateAnyAccessCheck
Defines an access checker for creating an entity of any bundle.

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
    $this->entityTypeManager = $entity_type_manager;
    $this->entityTypeBundleInfo = $entity_type_bundle_info;
}
RSS feed
Powered by Drupal