public function ReviewForm::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate_drupal_ui/src/Form/ReviewForm.php \Drupal\migrate_drupal_ui\Form\ReviewForm::__construct()
ReviewForm constructor.
Parameters
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager: The migration plugin manager service.
\Drupal\Core\TempStore\PrivateTempStoreFactory $tempstore_private: The private tempstore factory service.
\Drupal\migrate_drupal\MigrationState $migrationState: Migration state service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
Overrides MigrateUpgradeFormBase::__construct
File
- core/
modules/ migrate_drupal_ui/ src/ Form/ ReviewForm.php, line 80
Class
- ReviewForm
- Migrate Upgrade review form.
Namespace
Drupal\migrate_drupal_ui\FormCode
public function __construct(StateInterface $state, MigrationPluginManagerInterface $migration_plugin_manager, PrivateTempStoreFactory $tempstore_private, MigrationState $migrationState, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler = NULL) {
parent::__construct($config_factory, $migration_plugin_manager, $state, $tempstore_private);
$this->migrationState = $migrationState;
if (!$module_handler) {
@trigger_error('Calling ' . __METHOD__ . ' without the $module_handler argument is deprecated in drupal:9.1.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3136769', E_USER_DEPRECATED);
$module_handler = \Drupal::service('module_handler');
}
$this->moduleHandler = $module_handler;
}