public function SettingsForm::submitForm in Sub-pathauto (Sub-path URL Aliases) 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/ SettingsForm.php, line 34
Class
- 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'])
->save();
parent::submitForm($form, $form_state);
}