Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / migrate_tools / src / Form / MigrationGroupEditForm.php
1 <?php
2
3 namespace Drupal\migrate_tools\Form;
4
5 use Drupal\Core\Form\FormStateInterface;
6
7 /**
8  * Provides the edit form for our Migration Group entity.
9  *
10  * @package Drupal\migrate_tools\Form
11  *
12  * @ingroup migrate_tools
13  */
14 class MigrationGroupEditForm extends MigrationGroupFormBase {
15
16   /**
17    * Returns the actions provided by this form.
18    *
19    * For the edit form, we only need to change the text of the submit button.
20    *
21    * @param array $form
22    *   An associative array containing the structure of the form.
23    * @param \Drupal\Core\Form\FormStateInterface $form_state
24    *   An associative array containing the current state of the form.
25    *
26    * @return array
27    *   An array of supported actions for the current entity form.
28    */
29   public function actions(array $form, FormStateInterface $form_state) {
30     $actions = parent::actions($form, $form_state);
31     $actions['submit']['#value'] = t('Update Migration Group');
32     return $actions;
33   }
34
35 }