public function WorkflowTypeConfigureForm::submitConfigurationForm in Workflows Field 2.x
Same name and namespace in other branches
- 8 src/Form/WorkflowTypeConfigureForm.php \Drupal\workflows_field\Form\WorkflowTypeConfigureForm::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
- src/
Form/ WorkflowTypeConfigureForm.php, line 36
Class
- WorkflowTypeConfigureForm
- Plugin form for the workflows field.
Namespace
Drupal\workflows_field\FormCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$configuration = $this->workflowType
->getConfiguration();
$configuration['initial_state'] = $form_state
->getValue([
'settings',
'initial_state',
]);
$this->workflowType
->setConfiguration($configuration);
}