function ComplexTestTypeConfigureForm::submitConfigurationForm

Same name in other branches
  1. 9 core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeConfigureForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeConfigureForm::submitConfigurationForm()
  2. 10 core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeConfigureForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeConfigureForm::submitConfigurationForm()
  3. 11.x core/modules/workflows/tests/modules/workflow_type_test/src/Form/ComplexTestTypeConfigureForm.php \Drupal\workflow_type_test\Form\ComplexTestTypeConfigureForm::submitConfigurationForm()

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\Form

Code

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.