You are here

public function AppCredentialsConfigForm::submitForm in Apigee Edge 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/AppCredentialsConfigForm.php, line 60

Class

AppCredentialsConfigForm
Base config form for app credentials related settings.

Namespace

Drupal\apigee_edge\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config($this
    ->getConfigName())
    ->set('credential_lifetime', $form_state
    ->getValue('credential_lifetime'))
    ->save();
  parent::submitForm($form, $form_state);
}