summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2017-03-03 11:11:17 (GMT)
committerAlex Pott2017-03-03 11:11:17 (GMT)
commiteb83216e26880bf8eac3e44fb22d3ae1b9b49bf1 (patch)
treeaec3972834f45119d1b946cf7223233d63619fc1
parentb0af9e99545bc8cf41fea5bade8003d99c4fc890 (diff)
Issue #2855428 by Sam152, jhedstrom, timmillwood: Workflow state and transition add/edit form IDs have a '-' in them
-rw-r--r--core/modules/workflows/src/Form/WorkflowStateAddForm.php7
-rw-r--r--core/modules/workflows/src/Form/WorkflowStateEditForm.php7
-rw-r--r--core/modules/workflows/src/Form/WorkflowTransitionAddForm.php7
-rw-r--r--core/modules/workflows/src/Form/WorkflowTransitionEditForm.php7
4 files changed, 28 insertions, 0 deletions
diff --git a/core/modules/workflows/src/Form/WorkflowStateAddForm.php b/core/modules/workflows/src/Form/WorkflowStateAddForm.php
index c9b46e2..0b36858 100644
--- a/core/modules/workflows/src/Form/WorkflowStateAddForm.php
+++ b/core/modules/workflows/src/Form/WorkflowStateAddForm.php
@@ -14,6 +14,13 @@ class WorkflowStateAddForm extends EntityForm {
/**
* {@inheritdoc}
*/
+ public function getFormId() {
+ return 'workflow_state_add_form';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
diff --git a/core/modules/workflows/src/Form/WorkflowStateEditForm.php b/core/modules/workflows/src/Form/WorkflowStateEditForm.php
index 75af1d6..f21508f 100644
--- a/core/modules/workflows/src/Form/WorkflowStateEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowStateEditForm.php
@@ -22,6 +22,13 @@ class WorkflowStateEditForm extends EntityForm {
/**
* {@inheritdoc}
*/
+ public function getFormId() {
+ return 'workflow_state_edit_form';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
public function buildForm(array $form, FormStateInterface $form_state, $workflow_state = NULL) {
$this->stateId = $workflow_state;
return parent::buildForm($form, $form_state);
diff --git a/core/modules/workflows/src/Form/WorkflowTransitionAddForm.php b/core/modules/workflows/src/Form/WorkflowTransitionAddForm.php
index 1c557d9..fe3a406 100644
--- a/core/modules/workflows/src/Form/WorkflowTransitionAddForm.php
+++ b/core/modules/workflows/src/Form/WorkflowTransitionAddForm.php
@@ -15,6 +15,13 @@ class WorkflowTransitionAddForm extends EntityForm {
/**
* {@inheritdoc}
*/
+ public function getFormId() {
+ return 'workflow_transition_add_form';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
diff --git a/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php b/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
index b6f65a4..5bbabae 100644
--- a/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
@@ -23,6 +23,13 @@ class WorkflowTransitionEditForm extends EntityForm {
/**
* {@inheritdoc}
*/
+ public function getFormId() {
+ return 'workflow_transition_edit_form';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
public function buildForm(array $form, FormStateInterface $form_state, $workflow_transition = NULL) {
$this->transitionId = $workflow_transition;
return parent::buildForm($form, $form_state);