function PerformanceForm::submitForm

Same name and namespace in other branches
  1. 10 core/modules/system/src/Form/PerformanceForm.php \Drupal\system\Form\PerformanceForm::submitForm()
  2. 9 core/modules/system/src/Form/PerformanceForm.php \Drupal\system\Form\PerformanceForm::submitForm()
  3. 8.9.x core/modules/system/src/Form/PerformanceForm.php \Drupal\system\Form\PerformanceForm::submitForm()

Overrides ConfigFormBase::submitForm

File

core/modules/system/src/Form/PerformanceForm.php, line 165

Class

PerformanceForm
Configure performance settings for this site.

Namespace

Drupal\system\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->cssCollectionOptimizer
    ->deleteAll();
  $this->jsCollectionOptimizer
    ->deleteAll();
  parent::submitForm($form, $form_state);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.