public function GridActionForm::selectAll in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Form/GridActionForm.php \Drupal\filebrowser\Form\GridActionForm::selectAll()
File
- src/
Form/ GridActionForm.php, line 283
Class
- GridActionForm
- Class GridActionForm.
Namespace
Drupal\filebrowser\FormCode
public function selectAll($form, FormStateInterface $form_state) {
$value = $form_state
->getValue('select_all');
$response = new AjaxResponse();
$response
->addCommand(new InvokeCommand('.filebrowser-checkbox', 'val', [
[
'checked',
$value,
],
]));
return $response;
}