public function MigrationEditForm::actions in Migrate Tools 8
Same name and namespace in other branches
- 8.5 src/Form/MigrationEditForm.php \Drupal\migrate_tools\Form\MigrationEditForm::actions()
- 8.2 src/Form/MigrationEditForm.php \Drupal\migrate_tools\Form\MigrationEditForm::actions()
- 8.3 src/Form/MigrationEditForm.php \Drupal\migrate_tools\Form\MigrationEditForm::actions()
- 8.4 src/Form/MigrationEditForm.php \Drupal\migrate_tools\Form\MigrationEditForm::actions()
Returns the actions provided by this form.
For the edit form, we only need to change the text of the submit button.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: An associative array containing the current state of the form.
Return value
array An array of supported actions for the current entity form.
Overrides MigrationFormBase::actions
File
- src/
Form/ MigrationEditForm.php, line 37 - Contains Drupal\migrate_tools\Form\MigrationEditForm.
Class
- MigrationEditForm
- Class MigrationEditForm
Namespace
Drupal\migrate_tools\FormCode
public function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = t('Update Migration');
// Add the group parameter to the delete URL.
$this
->addGroupParameter($actions['delete']['#url'], $this
->getEntity()
->get('migration_group'));
return $actions;
}