public function ComplexTestTypeConfigureForm::submitConfigurationForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeConfigureForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeConfigureForm::submitConfigurationForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides PluginFormInterface::submitConfigurationForm
File
- core/
modules/ workflows/ tests/ modules/ workflow_type_test/ src/ Form/ ComplexTestTypeConfigureForm.php, line 32
Class
- ComplexTestTypeConfigureForm
- Form to configure the complex test workflow type.
Namespace
Drupal\workflow_type_test\FormCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$type_configuration = $this->workflowType
->getConfiguration();
$type_configuration['example_setting'] = $form_state
->getValue('example_setting');
$this->workflowType
->setConfiguration($type_configuration);
}