function ComplexTestTypeConfigureForm::buildConfigurationForm
Same name in other branches
- 9 core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeConfigureForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeConfigureForm::buildConfigurationForm()
- 10 core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeConfigureForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeConfigureForm::buildConfigurationForm()
- 11.x core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeConfigureForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeConfigureForm::buildConfigurationForm()
Overrides PluginFormInterface::buildConfigurationForm
File
-
core/
modules/ workflows/ tests/ modules/ workflow_type_test/ src/ Form/ ComplexTestTypeConfigureForm.php, line 18
Class
- ComplexTestTypeConfigureForm
- Form to configure the complex test workflow type.
Namespace
Drupal\workflow_type_test\FormCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$type_configuration = $this->workflowType
->getConfiguration();
$form['example_setting'] = [
'#type' => 'textfield',
'#title' => $this->t('Example global workflow setting'),
'#description' => $this->t('Extra information added to the workflow'),
'#default_value' => $type_configuration['example_setting'],
];
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.