comparison modules/contrib/migrate_tools/src/Form/MigrationGroupAddForm.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 MigrationGroupAddForm.
9 *
10 * Provides the add form for our migration_group entity.
11 *
12 * @package Drupal\migrate_tools\Form
13 *
14 * @ingroup migrate_tools
15 */
16 class MigrationGroupAddForm extends MigrationGroupFormBase {
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 Group');
34 return $actions;
35 }
36
37 }