You are here

protected function ViewsBulkOperationsFormTrait::setTempstoreData in Views Bulk Operations (VBO) 4.0.x

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

Sets the current view user tempstore data.

Parameters

array $data: The data to set.

string $view_id: The current view ID.

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

4 calls to ViewsBulkOperationsFormTrait::setTempstoreData()
ConfigureAction::submitForm in src/Form/ConfigureAction.php
Form submission handler.
ViewsBulkOperationsBulkForm::updateTempstoreData in src/Plugin/views/field/ViewsBulkOperationsBulkForm.php
Update tempstore data.
ViewsBulkOperationsBulkForm::viewsFormSubmit in src/Plugin/views/field/ViewsBulkOperationsBulkForm.php
Submit handler for the bulk form.
ViewsBulkOperationsController::updateSelection in src/Controller/ViewsBulkOperationsController.php
AJAX callback to update selection (multipage).

File

src/Form/ViewsBulkOperationsFormTrait.php, line 223

Class

ViewsBulkOperationsFormTrait
Defines common methods for Views Bulk Operations forms.

Namespace

Drupal\views_bulk_operations\Form

Code

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