You are here

protected function VboExportBase::getCurrentRows in VBO export 8.3

Current rows to be processed.

Return value

array

2 calls to VboExportBase::getCurrentRows()
VboExportCsv::generateOutput in src/Plugin/Action/VboExportCsv.php
Generate output string.
VboExportXlsx::generateOutput in src/Plugin/Action/VboExportXlsx.php
Generate output string.

File

src/Plugin/Action/VboExportBase.php, line 137

Class

VboExportBase
Base class for export actions.

Namespace

Drupal\vbo_export\Plugin\Action

Code

protected function getCurrentRows() {
  $rows = [];
  for ($i = 1; $i <= $this->context['sandbox']['current_batch']; $i++) {
    $chunk = $this->tempStore
      ->get($this->context['sandbox']['cid_prefix'] . $i);
    if ($chunk) {
      $rows = array_merge($rows, $chunk);
      $this->tempStore
        ->delete($this->context['sandbox']['cid_prefix'] . $i);
    }
  }
  return $rows;
}