You are here

protected function ViewsBulkOperationsFormTrait::getTempstoreData in Views Bulk Operations (VBO) 8.3

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

Gets 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::getTempstoreData()
ViewsBulkOperationsBulkForm::updateTempstoreData in src/Plugin/views/field/ViewsBulkOperationsBulkForm.php
Update tempstore data.
ViewsBulkOperationsBulkForm::viewsFormValidate in src/Plugin/views/field/ViewsBulkOperationsBulkForm.php
ViewsBulkOperationsController::execute in src/Controller/ViewsBulkOperationsController.php
The actual page callback.
ViewsBulkOperationsController::updateSelection in src/Controller/ViewsBulkOperationsController.php
AJAX callback to update selection (multipage).
ViewsBulkOperationsFormTrait::getFormData in src/Form/ViewsBulkOperationsFormTrait.php
Helper function to prepare data needed for proper form display.

File

src/Form/ViewsBulkOperationsFormTrait.php, line 207

Class

ViewsBulkOperationsFormTrait
Defines common methods for Views Bulk Operations forms.

Namespace

Drupal\views_bulk_operations\Form

Code

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