You are here

public function MigrationGroupEditForm::actions in Migrate Tools 8

Same name and namespace in other branches
  1. 8.5 src/Form/MigrationGroupEditForm.php \Drupal\migrate_tools\Form\MigrationGroupEditForm::actions()
  2. 8.2 src/Form/MigrationGroupEditForm.php \Drupal\migrate_tools\Form\MigrationGroupEditForm::actions()
  3. 8.3 src/Form/MigrationGroupEditForm.php \Drupal\migrate_tools\Form\MigrationGroupEditForm::actions()
  4. 8.4 src/Form/MigrationGroupEditForm.php \Drupal\migrate_tools\Form\MigrationGroupEditForm::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 MigrationGroupFormBase::actions

File

src/Form/MigrationGroupEditForm.php, line 36
Contains Drupal\migrate_tools\Form\MigrationGroupEditForm.

Class

MigrationGroupEditForm
Class MigrationGroupEditForm

Namespace

Drupal\migrate_tools\Form

Code

public function actions(array $form, FormStateInterface $form_state) {
  $actions = parent::actions($form, $form_state);
  $actions['submit']['#value'] = t('Update Migration Group');
  return $actions;
}