public function SourceCsvForm::__construct in Migrate Tools 8.4
Constructs new SourceCsvForm object.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager: The plugin manager for config entity-based migrations.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\Core\TempStore\PrivateTempStoreFactory $private_store: The private store.
File
- src/
Form/ SourceCsvForm.php, line 150
Class
- SourceCsvForm
- Provides an edit form for CSV source plugin column_names configuration.
Namespace
Drupal\migrate_tools\FormCode
public function __construct(Connection $connection, MigrationPluginManagerInterface $migration_plugin_manager, MessengerInterface $messenger, PrivateTempStoreFactory $private_store) {
$this->connection = $connection;
$this->migrationPluginManager = $migration_plugin_manager;
$this->messenger = $messenger;
$this->store = $private_store
->get('migrate_tools');
}