You are here

protected function ViewsBulkOperationsFormTrait::getListItem 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::getListItem()
  2. 8.2 src/Form/ViewsBulkOperationsFormTrait.php \Drupal\views_bulk_operations\Form\ViewsBulkOperationsFormTrait::getListItem()

Get an entity list item from a bulk form key.

Parameters

string $bulkFormKey: A bulk form key.

Return value

array Entity list item.

2 calls to ViewsBulkOperationsFormTrait::getListItem()
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 183

Class

ViewsBulkOperationsFormTrait
Defines common methods for Views Bulk Operations forms.

Namespace

Drupal\views_bulk_operations\Form

Code

protected function getListItem($bulkFormKey) {
  $item = json_decode(base64_decode($bulkFormKey));
  return $item;
}