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%2FComplexTestTypeTransitionForm.php;fp=web%2Fcore%2Fmodules%2Fworkflows%2Ftests%2Fmodules%2Fworkflow_type_test%2Fsrc%2FForm%2FComplexTestTypeTransitionForm.php;h=a88306c750db8a99f7e10753c02627526a258794;hp=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeTransitionForm.php b/web/core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeTransitionForm.php new file mode 100644 index 000000000..a88306c75 --- /dev/null +++ b/web/core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeTransitionForm.php @@ -0,0 +1,30 @@ +get('transition'); + $configuration = $this->workflowType->getConfiguration(); + $form['extra'] = [ + '#type' => 'textfield', + '#title' => $this->t('Extra'), + '#description' => $this->t('Extra information added to transition'), + '#default_value' => $transition && isset($configuration['transitions'][$transition->id()]['extra']) ? $configuration['transitions'][$transition->id()]['extra'] : '', + ]; + return $form; + } + +}