public function QuickNodeCloneNodeSettingsForm::submitForm in Quick Node Clone 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides QuickNodeCloneEntitySettingsForm::submitForm
File
- src/
Form/ QuickNodeCloneNodeSettingsForm.php, line 51
Class
- QuickNodeCloneNodeSettingsForm
- Module settings form.
Namespace
Drupal\quick_node_clone\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state
->cleanValues();
$form_values = $form_state
->getValues();
$this
->config('quick_node_clone.settings')
->set('text_to_prepend_to_title', $form_values['text_to_prepend_to_title'])
->save();
$this
->config('quick_node_clone.settings')
->set('clone_status', $form_values['clone_status'])
->save();
parent::submitForm($form, $form_state);
}