public function OAuthSettingsForm::submitForm in OAuth 1.0 8
Same name and namespace in other branches
- 8.2 src/Form/OAuthSettingsForm.php \Drupal\oauth\Form\OAuthSettingsForm::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/ OAuthSettingsForm.php, line 96 - Contains \Drupal\oauth\Form\OAuthSettingsForm.
Class
- OAuthSettingsForm
- Provides a deletion confirmation form for the block instance deletion form.
Namespace
Drupal\oauth\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
\Drupal::configFactory()
->getEditable('oauth.settings')
->set('request_token_lifetime', $form_state
->getValue('request_token_lifetime'))
->set('login_path', $form_state
->getValue('login_path'))
->save();
}