function drush_yamlform_to_webform_migrate in YAML Form 8
Implements drush_hook_COMMAND().
File
- modules/
yamlform_to_webform/ yamlform_to_webform.drush.inc, line 61 - YAML Form to Webform module drush commands.
Code
function drush_yamlform_to_webform_migrate() {
if (!drush_confirm(dt('Are you sure you want to migrate from YAML Form 8.x-1.x to Webform 8.x-5.x? The migration may take a few minutes.'))) {
return drush_user_abort();
}
/** @var \Drupal\yamlform_to_webform\YamlFormToWebformMigrateManagerInterface $migrate_manager */
$migrate_manager = \Drupal::service('yamlform_to_webform.migrate_manager');
$migrate_manager
->migrate();
drush_cache_rebuild();
drush_print('YAML Form to Webform migration has completed.');
}