You are here

public function ScannerAdminForm::__construct in Search and Replace Scanner 8

Constructs a ScannerAdminForm object.

Parameters

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

\Drupal\scanner\Plugin\ScannerPluginManager $scanner_plugin_manager: The scanner plugin manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

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

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

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

Overrides ConfigFormBase::__construct

File

src/Form/ScannerAdminForm.php, line 72

Class

ScannerAdminForm
Form for configuring the default scanner settings.

Namespace

Drupal\scanner\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ScannerPluginManager $scanner_plugin_manager, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
  parent::__construct($config_factory);
  $this->scannerPluginManager = $scanner_plugin_manager;
  $this->languageManager = $language_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
}