function ComplexTestTypeTransitionForm::buildConfigurationForm
Same name in other branches
- 9 core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeTransitionForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeTransitionForm::buildConfigurationForm()
- 10 core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeTransitionForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeTransitionForm::buildConfigurationForm()
- 11.x core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeTransitionForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeTransitionForm::buildConfigurationForm()
Overrides PluginFormInterface::buildConfigurationForm
File
-
core/
modules/ workflows/ tests/ modules/ workflow_type_test/ src/ Form/ ComplexTestTypeTransitionForm.php, line 18
Class
- ComplexTestTypeTransitionForm
- Form to configure the complex test workflow states.
Namespace
Drupal\workflow_type_test\FormCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$transition = $form_state->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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.