public function MigrationConfirmationForm::__construct in Lightning Workflow 8.3
Same name and namespace in other branches
- 8.2 modules/lightning_scheduler/src/Form/MigrationConfirmationForm.php \Drupal\lightning_scheduler\Form\MigrationConfirmationForm::__construct()
MigrationConfirmationForm constructor.
Parameters
\Drupal\lightning_scheduler\Migrator $migrator: The migrator service.
\Drupal\Core\Messenger\MessengerInterface $messenger: (optional) The messenger service.
File
- modules/
lightning_scheduler/ src/ Form/ MigrationConfirmationForm.php, line 36
Class
- MigrationConfirmationForm
- Provides a UI for migrating or purging scheduled transition data.
Namespace
Drupal\lightning_scheduler\FormCode
public function __construct(Migrator $migrator, MessengerInterface $messenger = NULL) {
$this->migrator = $migrator;
if ($messenger) {
$this
->setMessenger($messenger);
}
}