You are here

public function FieldCollectionItemHostAddOperationCheck::__construct in Field collection 8

Same name and namespace in other branches
  1. 8.3 src/Access/FieldCollectionItemHostAddOperationCheck.php \Drupal\field_collection\Access\FieldCollectionItemHostAddOperationCheck::__construct()

Constructs a FieldCollectionItemHostAddOperationCheck object.

Parameters

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

File

src/Access/FieldCollectionItemHostAddOperationCheck.php, line 27

Class

FieldCollectionItemHostAddOperationCheck
Determines access to operations on the field collection item's host.

Namespace

Drupal\field_collection\Access

Code

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