protected function MigrationExecuteForm::buildFormOptions in Migrate Tools 8.5
Same name and namespace in other branches
- 8.4 src/Form/MigrationExecuteForm.php \Drupal\migrate_tools\Form\MigrationExecuteForm::buildFormOptions()
Build the execution options form field.
Parameters
array $form: The execution form.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
Return value
array The execution form updated with the execution options.
1 call to MigrationExecuteForm::buildFormOptions()
- MigrationExecuteForm::buildForm in src/
Form/ MigrationExecuteForm.php - Form constructor.
File
- src/
Form/ MigrationExecuteForm.php, line 132
Class
- MigrationExecuteForm
- This form is specifically for configuring process pipelines.
Namespace
Drupal\migrate_tools\FormCode
protected function buildFormOptions(array $form, FormStateInterface $form_state) {
$form['options'] = [
'#type' => 'details',
'#title' => $this
->t('Additional execution options'),
'#open' => FALSE,
];
$form['options']['update'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Update'),
'#description' => $this
->t('Check this box to update all previously-imported content in addition to importing new content. Leave unchecked to only import new content'),
];
$form['options']['force'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Ignore dependencies'),
'#description' => $this
->t('Check this box to ignore dependencies when running imports - all tasks will run whether or not their dependent tasks have completed.'),
];
$form['options']['limit'] = [
'#type' => 'number',
'#title' => $this
->t('Limit to:'),
'#size' => 10,
'#description' => $this
->t('Set a limit of how many items to process for each migration task.'),
];
return $form;
}