private function RenameAdminPathsSettingsForm::saveConfiguration in Rename Admin Paths 8.2
Parameters
FormStateInterface $formState:
1 call to RenameAdminPathsSettingsForm::saveConfiguration()
- RenameAdminPathsSettingsForm::submitForm in src/
Form/ RenameAdminPathsSettingsForm.php - Form submission handler.
File
- src/
Form/ RenameAdminPathsSettingsForm.php, line 178
Class
Namespace
Drupal\rename_admin_paths\FormCode
private function saveConfiguration(FormStateInterface $formState) {
$this->config
->setPathEnabled('admin', $formState
->getValue('admin_path'));
$this->config
->setPathValue('admin', $formState
->getValue('admin_path_value'));
$this->config
->setPathEnabled('user', $formState
->getValue('user_path'));
$this->config
->setPathValue('user', $formState
->getValue('user_path_value'));
$this->config
->save();
}