X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fworkflows%2Ftests%2Fmodules%2Fworkflow_type_test%2Fsrc%2FForm%2FComplexTestTypeStateForm.php;fp=web%2Fcore%2Fmodules%2Fworkflows%2Ftests%2Fmodules%2Fworkflow_type_test%2Fsrc%2FForm%2FComplexTestTypeStateForm.php;h=a466a7d571f61354bbee8cf288886454b27366f5;hp=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeStateForm.php b/web/core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeStateForm.php new file mode 100644 index 000000000..a466a7d57 --- /dev/null +++ b/web/core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeStateForm.php @@ -0,0 +1,30 @@ +get('state'); + $configuration = $this->workflowType->getConfiguration(); + $form['extra'] = [ + '#type' => 'textfield', + '#title' => $this->t('Extra'), + '#description' => $this->t('Extra information added to state'), + '#default_value' => $state && isset($configuration['states'][$state->id()]['extra']) ? $configuration['states'][$state->id()]['extra'] : '', + ]; + return $form; + } + +}