public function MigrationCommands::__construct in Lightning Workflow 8.3
Same name and namespace in other branches
- 8.2 modules/lightning_scheduler/src/Commands/MigrationCommands.php \Drupal\lightning_scheduler\Commands\MigrationCommands::__construct()
MigrationCommands constructor.
Parameters
\Drupal\lightning_scheduler\Migrator $migrator: The migrator service.
\Drupal\Core\StringTranslation\TranslationInterface $translation: (optional) The string translation service.
File
- modules/
lightning_scheduler/ src/ Commands/ MigrationCommands.php, line 33
Class
- MigrationCommands
- Provides Drush commands for migrating scheduler data to the new base fields.
Namespace
Drupal\lightning_scheduler\CommandsCode
public function __construct(Migrator $migrator, TranslationInterface $translation = NULL) {
$this->migrator = $migrator;
}