3 namespace Drupal\migrate_tools\Form;
5 use Drupal\Core\Form\FormStateInterface;
8 * Class MigrationAddForm.
10 * Provides the add form for our migration entity.
12 * @package Drupal\migrate_tools\Form
14 * @ingroup migrate_tools
16 class MigrationAddForm extends MigrationFormBase {
19 * Returns the actions provided by this form.
21 * For our add form, we only need to change the text of the submit button.
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.
29 * An array of supported actions for the current entity form.
31 protected function actions(array $form, FormStateInterface $form_state) {
32 $actions = parent::actions($form, $form_state);
33 unset($actions['submit']);