You are here

public function FieldInheritanceAjaxForm::__construct in Field Inheritance 8

Same name and namespace in other branches
  1. 2.0.x src/Form/FieldInheritanceAjaxForm.php \Drupal\field_inheritance\Form\FieldInheritanceAjaxForm::__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.

\Drupal\Core\Entity\EntityFormBuilder $entity_form_builder: The entity form builder service.

\Drupal\Core\Render\Renderer $renderer: The renderer service.

Overrides FieldInheritanceForm::__construct

File

src/Form/FieldInheritanceAjaxForm.php, line 57

Class

FieldInheritanceAjaxForm
Provides an AJAX 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, EntityFormBuilder $entity_form_builder, Renderer $renderer) {
  parent::__construct($messenger, $entity_field_manager, $entity_type_manager, $entity_type_bundle_info, $field_inheritance);
  $this->entityFormBuilder = $entity_form_builder;
  $this->renderer = $renderer;
}