You are here

public function ManageFilesForm::filterList in Minify JS 8

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

Filter list submit callback.

Parameters

array $form:

\Drupal\Core\Form\FormStateInterface $form_state:

File

src/Form/ManageFilesForm.php, line 262

Class

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

Namespace

Drupal\minifyjs\Form

Code

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