You are here

public function FieldsSettingsForm::__construct in Diff 8

Constructs a FieldsSettingsForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Component\Plugin\PluginManagerInterface $plugin_manager: The plugin manager service.

\Drupal\diff\DiffBuilderManager $diff_builder_manager: The diff builder manager.

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

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

Overrides ConfigFormBase::__construct

File

src/Form/FieldsSettingsForm.php, line 68

Class

FieldsSettingsForm
Configure fields with their diff builder plugin settings.

Namespace

Drupal\diff\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, PluginManagerInterface $plugin_manager, DiffBuilderManager $diff_builder_manager, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) {
  parent::__construct($config_factory);
  $this->fieldTypePluginManager = $plugin_manager;
  $this->diffBuilderManager = $diff_builder_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
}