public function NodeorderAdminForm::submitForm in Node Order 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 ConfigFormBase::submitForm
File
- src/
Form/ NodeorderAdminForm.php, line 76
Class
- NodeorderAdminForm
- Provides forms for managing Node Order.
Namespace
Drupal\nodeorder\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->configFactory()
->getEditable('nodeorder.settings')
->set('show_links_on_node', $form_state
->getValue('nodeorder_show_links_on_node'))
->set('link_to_ordering_page', $form_state
->getValue('nodeorder_link_to_ordering_page'))
->set('link_to_ordering_page_taxonomy_admin', $form_state
->getValue('nodeorder_link_to_ordering_page_taxonomy_admin'))
->set('override_taxonomy_page', $form_state
->getValue('nodeorder_override_taxonomy_page'))
->save();
parent::submitForm($form, $form_state);
}