AdvancedSettingsForm::cacheSubmit

public AdvancedSettingsForm::cacheSubmit()

Submission handler to clear the Views cache.

File

core/modules/views_ui/src/Form/AdvancedSettingsForm.php, line 102

Class

AdvancedSettingsForm
Form builder for the advanced admin settings page.

Namespace

Drupal\views_ui\Form

Code

1
2
3
4
public function cacheSubmit() {
  views_invalidate_cache();
  drupal_set_message($this->t('The cache has been cleared.'));
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.