Fichier
-
src/
Form/ SettingsForm.php, line 78
Classe
- SettingsForm
- Defines a form that configures Subpathauto.
Namespace
Drupal\subpathauto\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state->getValues();
$this->config('subpathauto.settings')
->set('depth', $values['depth'])
->set('redirect_support', $values['redirect_support'])
->save();
parent::submitForm($form, $form_state);
}