Mercurial > hg > isophonics-drupal-site
comparison modules/contrib/migrate_tools/src/Form/MigrationAddForm.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
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 // $actions['submit']['#value'] = $this->t('Create Migration'); | |
34 unset($actions['submit']); | |
35 return $actions; | |
36 } | |
37 | |
38 } |