ee52359cdcbe1b8f0cf313c449570d592ddb85c8
[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  * Class MigrationGroupEditForm
9  *
10  * Provides the edit form for our Migration Group entity.
11  *
12  * @package Drupal\migrate_tools\Form
13  *
14  * @ingroup migrate_tools
15  */
16 class MigrationGroupEditForm extends MigrationGroupFormBase {
17
18   /**
19    * Returns the actions provided by this form.
20    *
21    * For the edit form, we only need to change the text of the submit button.
22    *
23    * @param array $form
24    *   An associative array containing the structure of the form.
25    * @param \Drupal\Core\Form\FormStateInterface $form_state
26    *   An associative array containing the current state of the form.
27    *
28    * @return array
29    *   An array of supported actions for the current entity form.
30    */
31   public function actions(array $form, FormStateInterface $form_state) {
32     $actions = parent::actions($form, $form_state);
33     $actions['submit']['#value'] = t('Update Migration Group');
34     return $actions;
35   }
36
37 }