You are here

protected function MigrationAddForm::actions in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8 src/Form/MigrationAddForm.php \Drupal\migrate_tools\Form\MigrationAddForm::actions()
  2. 8.2 src/Form/MigrationAddForm.php \Drupal\migrate_tools\Form\MigrationAddForm::actions()
  3. 8.3 src/Form/MigrationAddForm.php \Drupal\migrate_tools\Form\MigrationAddForm::actions()
  4. 8.4 src/Form/MigrationAddForm.php \Drupal\migrate_tools\Form\MigrationAddForm::actions()

Returns the actions provided by this form.

For our add 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/MigrationAddForm.php, line 31

Class

MigrationAddForm
Class MigrationAddForm.

Namespace

Drupal\migrate_tools\Form

Code

protected function actions(array $form, FormStateInterface $form_state) {
  $actions = parent::actions($form, $form_state);
  unset($actions['submit']);
  return $actions;
}