public function EdgeEntityCacheConfigFormBase::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/ EdgeEntityCacheConfigFormBase.php, line 65
Class
- EdgeEntityCacheConfigFormBase
- Base cache expiration config form for Apigee Edge entities.
Namespace
Drupal\apigee_edge\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config($this
->getConfigNameWithCacheSettings())
->set('cache_expiration', $form_state
->getValue('cache_expiration'))
->save();
parent::submitForm($form, $form_state);
}