You are here

public function LazyForm::cacheClear in Lazy-load 8

Same name and namespace in other branches
  1. 8.2 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 219

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.');

  // return $this->redirect('lazy.config_form');
}