You are here

public function FieldInheritanceForm::__construct in Field Inheritance 8

Same name and namespace in other branches
  1. 2.0.x src/Form/FieldInheritanceForm.php \Drupal\field_inheritance\Form\FieldInheritanceForm::__construct()

Construct an FieldInheritanceForm.

Parameters

\Drupal\Core\Messenger\Messenger $messenger: The messenger service.

\Drupal\Core\Entity\EntityFieldManager $entity_field_manager: The entity field manager service.

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

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

\Drupal\field_inheritance\FieldInheritancePluginManager $field_inheritance: The field inheritance plugin manager.

1 call to FieldInheritanceForm::__construct()
FieldInheritanceAjaxForm::__construct in src/Form/FieldInheritanceAjaxForm.php
Construct an FieldInheritanceForm.
1 method overrides FieldInheritanceForm::__construct()
FieldInheritanceAjaxForm::__construct in src/Form/FieldInheritanceAjaxForm.php
Construct an FieldInheritanceForm.

File

src/Form/FieldInheritanceForm.php, line 71

Class

FieldInheritanceForm
Provides a form for managing field inheritance entities.

Namespace

Drupal\field_inheritance\Form

Code

public function __construct(Messenger $messenger, EntityFieldManager $entity_field_manager, EntityTypeManager $entity_type_manager, EntityTypeBundleInfo $entity_type_bundle_info, FieldInheritancePluginManager $field_inheritance) {
  $this->messenger = $messenger;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->fieldInheritance = $field_inheritance;
}