protected function ViewsBulkOperationsFormTrait::getTempstore in Views Bulk Operations (VBO) 8.2
Same name and namespace in other branches
- 8.3 src/Form/ViewsBulkOperationsFormTrait.php \Drupal\views_bulk_operations\Form\ViewsBulkOperationsFormTrait::getTempstore()
- 4.0.x src/Form/ViewsBulkOperationsFormTrait.php \Drupal\views_bulk_operations\Form\ViewsBulkOperationsFormTrait::getTempstore()
Initialize the current view tempstore object.
File
- src/
Form/ ViewsBulkOperationsFormTrait.php, line 118
Class
- ViewsBulkOperationsFormTrait
- Defines common methods for Views Bulk Operations forms.
Namespace
Drupal\views_bulk_operations\FormCode
protected function getTempstore($view_id = NULL, $display_id = NULL) {
if (!isset($this->viewTempstore)) {
$this->tempStoreName = 'views_bulk_operations_' . $view_id . '_' . $display_id;
$this->viewTempstore = $this->tempStoreFactory
->get($this->tempStoreName);
}
return $this->viewTempstore;
}