function EntityCreateAnyAccessCheck::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityCreateAnyAccessCheck.php \Drupal\Core\Entity\EntityCreateAnyAccessCheck::__construct()
- 10 core/lib/Drupal/Core/Entity/EntityCreateAnyAccessCheck.php \Drupal\Core\Entity\EntityCreateAnyAccessCheck::__construct()
- 11.x core/lib/Drupal/Core/Entity/EntityCreateAnyAccessCheck.php \Drupal\Core\Entity\EntityCreateAnyAccessCheck::__construct()
Constructs a 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 45
Class
- EntityCreateAnyAccessCheck
- Defines an access checker for creating an entity of any bundle.
Namespace
Drupal\Core\EntityCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.