You are here

public function ManageFilesForm::filterListReset in Minify JS 8

Same name and namespace in other branches
  1. 8.2 src/Form/ManageFilesForm.php \Drupal\minifyjs\Form\ManageFilesForm::filterListReset()

Filter list reset submit callback.

Parameters

array $form:

\Drupal\Core\Form\FormStateInterface $form_state:

File

src/Form/ManageFilesForm.php, line 273

Class

ManageFilesForm
Displays a list of detected javascript files and allows actions to be performed on them

Namespace

Drupal\minifyjs\Form

Code

public function filterListReset(array &$form, FormStateInterface $form_state) {
  $session = \Drupal::service('user.private_tempstore')
    ->get('minifyjs');
  $session
    ->set('query', NULL);
}