You are here

protected function MigrationGroupFormBase::actions in Migrate Tools 8

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

Overrides Drupal\Core\Entity\EntityFormController::actions().

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 EntityForm::actions

2 calls to MigrationGroupFormBase::actions()
MigrationGroupAddForm::actions in src/Form/MigrationGroupAddForm.php
Returns the actions provided by this form.
MigrationGroupEditForm::actions in src/Form/MigrationGroupEditForm.php
Returns the actions provided by this form.
2 methods override MigrationGroupFormBase::actions()
MigrationGroupAddForm::actions in src/Form/MigrationGroupAddForm.php
Returns the actions provided by this form.
MigrationGroupEditForm::actions in src/Form/MigrationGroupEditForm.php
Returns the actions provided by this form.

File

src/Form/MigrationGroupFormBase.php, line 151
Contains Drupal\migrate_tools\Form\MigrationGroupFormBase.

Class

MigrationGroupFormBase
Class MigrationGroupFormBase.

Namespace

Drupal\migrate_tools\Form

Code

protected function actions(array $form, FormStateInterface $form_state) {

  // Get the basic actins from the base class.
  $actions = parent::actions($form, $form_state);

  // Change the submit button text.
  $actions['submit']['#value'] = $this
    ->t('Save');

  // Return the result.
  return $actions;
}