public function ViewsBulkOperationsViewData::getTotalResults in Views Bulk Operations (VBO) 8.2
Same name and namespace in other branches
- 8.3 src/Service/ViewsBulkOperationsViewData.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsViewData::getTotalResults()
- 8 src/Service/ViewsBulkOperationsViewData.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsViewData::getTotalResults()
- 4.0.x src/Service/ViewsBulkOperationsViewData.php \Drupal\views_bulk_operations\Service\ViewsBulkOperationsViewData::getTotalResults()
Get the total count of results on all pages.
Return value
int The total number of results this view displays.
Overrides ViewsBulkOperationsViewDataInterface::getTotalResults
File
- src/
Service/ ViewsBulkOperationsViewData.php, line 168
Class
- ViewsBulkOperationsViewData
- Gets Views data needed by VBO.
Namespace
Drupal\views_bulk_operations\ServiceCode
public function getTotalResults() {
$total_results = NULL;
if (!empty($this->view->pager->total_items)) {
$total_results = $this->view->pager->total_items;
}
elseif (!empty($this->view->total_rows)) {
$total_results = $this->view->total_rows;
}
return $total_results;
}