You are here

public function LazyForm::cacheClear in Lazy-load 8.2

Same name and namespace in other branches
  1. 8 src/Form/LazyForm.php \Drupal\lazy\Form\LazyForm::cacheClear()

Clears all caches, then redirects to the previous page.

1 call to LazyForm::cacheClear()
LazyForm::submitForm in src/Form/LazyForm.php
Form submission handler.

File

src/Form/LazyForm.php, line 259

Class

LazyForm
Configure Lazy settings for this site.

Namespace

Drupal\lazy\Form

Code

public function cacheClear() {
  drupal_flush_all_caches();
  $this
    ->messenger()
    ->addMessage('Cache cleared.');
}