public function ConditionalFieldController::__construct in Conditional Fields 4.x
Same name and namespace in other branches
- 8 src/Controller/ConditionalFieldController.php \Drupal\conditional_fields\Controller\ConditionalFieldController::__construct()
ConditionalFieldController constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.
\Drupal\Core\Form\FormBuilderInterface $formBuilder: Form builder.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityTypeBundleInfo: Entity type bundle info.
\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: Entity field manager.
File
- src/
Controller/ ConditionalFieldController.php, line 59
Class
- ConditionalFieldController
- Returns responses for conditional_fields module routes.
Namespace
Drupal\conditional_fields\ControllerCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, FormBuilderInterface $formBuilder, EntityTypeBundleInfoInterface $entityTypeBundleInfo, EntityFieldManagerInterface $entityFieldManager) {
$this->entityTypeManager = $entityTypeManager;
$this->formBuilder = $formBuilder;
$this->entityTypeBundleInfo = $entityTypeBundleInfo;
$this->entityFieldManager = $entityFieldManager;
}