public function NodeAccessRebuildProgressiveSettingsForm::submitForm in Node Access Rebuild Progressive 8
Same name and namespace in other branches
- 2.x src/Form/NodeAccessRebuildProgressiveSettingsForm.php \Drupal\node_access_rebuild_progressive\Form\NodeAccessRebuildProgressiveSettingsForm::submitForm()
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/ NodeAccessRebuildProgressiveSettingsForm.php, line 65
Class
- NodeAccessRebuildProgressiveSettingsForm
- Configure settings for our module.
Namespace
Drupal\node_access_rebuild_progressive\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
\Drupal::configFactory()
->getEditable('node_access_rebuild_progressive.settings')
->set('chunk', $form_state
->getValue('chunk'))
->set('cron', $form_state
->getValue('cron'))
->save();
parent::submitForm($form, $form_state);
}