You are here

public function ConditionalFieldController::__construct in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x src/Controller/ConditionalFieldController.php \Drupal\conditional_fields\Controller\ConditionalFieldController::__construct()

ConditionalFieldController constructor.

Parameters

EntityTypeManagerInterface $entityTypeManager: Entity type manager.

FormBuilderInterface $formBuilder: Form builder.

EntityTypeBundleInfoInterface $entityTypeBundleInfo: Entity type bundle info.

EntityFieldManagerInterface $entityFieldManager: Entity field manager.

File

src/Controller/ConditionalFieldController.php, line 56

Class

ConditionalFieldController
Returns responses for conditional_fields module routes.

Namespace

Drupal\conditional_fields\Controller

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, FormBuilderInterface $formBuilder, EntityTypeBundleInfoInterface $entityTypeBundleInfo, EntityFieldManagerInterface $entityFieldManager) {
  $this->entityTypeManager = $entityTypeManager;
  $this->formBuilder = $formBuilder;
  $this->entityTypeBundleInfo = $entityTypeBundleInfo;
  $this->entityFieldManager = $entityFieldManager;
}