You are here

public function ViewsBulkOperationsBulkForm::clearSelection in Views Bulk Operations (VBO) 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/field/ViewsBulkOperationsBulkForm.php \Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm::clearSelection()
  2. 4.0.x src/Plugin/views/field/ViewsBulkOperationsBulkForm.php \Drupal\views_bulk_operations\Plugin\views\field\ViewsBulkOperationsBulkForm::clearSelection()

Clear the form selection along with entire tempstore.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

File

src/Plugin/views/field/ViewsBulkOperationsBulkForm.php, line 980

Class

ViewsBulkOperationsBulkForm
Defines the Views Bulk Operations field plugin.

Namespace

Drupal\views_bulk_operations\Plugin\views\field

Code

public function clearSelection(array &$form, FormStateInterface $form_state) {
  $this
    ->deleteTempstoreData();
}