Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / migrate_tools / src / Form / MigrationAddForm.php
1 <?php
2
3 namespace Drupal\migrate_tools\Form;
4
5 use Drupal\Core\Form\FormStateInterface;
6
7 /**
8  * Class MigrationAddForm.
9  *
10  * Provides the add form for our migration entity.
11  *
12  * @package Drupal\migrate_tools\Form
13  *
14  * @ingroup migrate_tools
15  */
16 class MigrationAddForm extends MigrationFormBase {
17
18   /**
19    * Returns the actions provided by this form.
20    *
21    * For our add 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   protected function actions(array $form, FormStateInterface $form_state) {
32     $actions = parent::actions($form, $form_state);
33     unset($actions['submit']);
34     return $actions;
35   }
36
37 }