You are here

protected function MigrationFormBase::actions in Migrate Tools 8

Same name and namespace in other branches
  1. 8.5 src/Form/MigrationFormBase.php \Drupal\migrate_tools\Form\MigrationFormBase::actions()
  2. 8.2 src/Form/MigrationFormBase.php \Drupal\migrate_tools\Form\MigrationFormBase::actions()
  3. 8.3 src/Form/MigrationFormBase.php \Drupal\migrate_tools\Form\MigrationFormBase::actions()
  4. 8.4 src/Form/MigrationFormBase.php \Drupal\migrate_tools\Form\MigrationFormBase::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 MigrationFormBase::actions()
MigrationAddForm::actions in src/Form/MigrationAddForm.php
Returns the actions provided by this form.
MigrationEditForm::actions in src/Form/MigrationEditForm.php
Returns the actions provided by this form.
2 methods override MigrationFormBase::actions()
MigrationAddForm::actions in src/Form/MigrationAddForm.php
Returns the actions provided by this form.
MigrationEditForm::actions in src/Form/MigrationEditForm.php
Returns the actions provided by this form.

File

src/Form/MigrationFormBase.php, line 161
Contains Drupal\migrate_tools\Form\MigrationFormBase.

Class

MigrationFormBase
Class MigrationFormBase.

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;
}