You are here

public function CredentialForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal_ui/src/Form/CredentialForm.php \Drupal\migrate_drupal_ui\Form\CredentialForm::__construct()

CredentialForm constructor.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $tempstore_private: The private tempstore factory service.

\GuzzleHttp\ClientInterface $http_client: A Guzzle client object.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager: The migration plugin manager service.

\Drupal\Core\State\StateInterface $state: The state service.

Overrides MigrateUpgradeFormBase::__construct

File

core/modules/migrate_drupal_ui/src/Form/CredentialForm.php, line 53

Class

CredentialForm
Migrate Upgrade database credential form.

Namespace

Drupal\migrate_drupal_ui\Form

Code

public function __construct(PrivateTempStoreFactory $tempstore_private, ClientInterface $http_client, ConfigFactoryInterface $config_factory, MigrationPluginManagerInterface $migration_plugin_manager, StateInterface $state) {
  parent::__construct($config_factory, $migration_plugin_manager, $state, $tempstore_private);
  $this->httpClient = $http_client;
}