You are here

protected function ViewsBulkOperationsFormTrait::deleteTempstoreData in Views Bulk Operations (VBO) 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/ViewsBulkOperationsFormTrait.php \Drupal\views_bulk_operations\Form\ViewsBulkOperationsFormTrait::deleteTempstoreData()
  2. 4.0.x src/Form/ViewsBulkOperationsFormTrait.php \Drupal\views_bulk_operations\Form\ViewsBulkOperationsFormTrait::deleteTempstoreData()

Deletes the current view user tempstore data.

Parameters

string $view_id: The current view ID.

string $display_id: The display ID of the current view.

5 calls to ViewsBulkOperationsFormTrait::deleteTempstoreData()
ConfigureAction::submitForm in src/Form/ConfigureAction.php
Form submission handler.
ConfirmAction::submitForm in src/Form/ConfirmAction.php
Form submission handler.
ViewsBulkOperationsBulkForm::clearSelection in src/Plugin/views/field/ViewsBulkOperationsBulkForm.php
Clear the form selection along with entire tempstore.
ViewsBulkOperationsBulkForm::viewsFormSubmit in src/Plugin/views/field/ViewsBulkOperationsBulkForm.php
Submit handler for the bulk form.
ViewsBulkOperationsController::execute in src/Controller/ViewsBulkOperationsController.php
The actual page callback.

File

src/Form/ViewsBulkOperationsFormTrait.php, line 162

Class

ViewsBulkOperationsFormTrait
Defines common methods for Views Bulk Operations forms.

Namespace

Drupal\views_bulk_operations\Form

Code

protected function deleteTempstoreData($view_id = NULL, $display_id = NULL) {
  return $this
    ->getTempstore($view_id, $display_id)
    ->delete($this
    ->currentUser()
    ->id());
}