Issue #2003494 by toddtomlinson, Frederico: Rename Views method get_total_items() to getTotalItems().
parent
df4aac2951
commit
33144ded52
|
@ -166,7 +166,7 @@ class ViewsSelection implements SelectionInterface {
|
|||
*/
|
||||
public function countReferencableEntities($match = NULL, $match_operator = 'CONTAINS') {
|
||||
$this->getReferencableEntities($match, $match_operator);
|
||||
return $this->view->pager->get_total_items();
|
||||
return $this->view->pager->getTotalItems();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -126,7 +126,7 @@ abstract class PagerPluginBase extends PluginBase {
|
|||
*
|
||||
* If NULL, we do not yet know what the total number of items are.
|
||||
*/
|
||||
function get_total_items() {
|
||||
public function getTotalItems() {
|
||||
return $this->total_items;
|
||||
}
|
||||
|
||||
|
|
|
@ -1500,7 +1500,7 @@ class Sql extends QueryPluginBase {
|
|||
|
||||
$view->pager->postExecute($view->result);
|
||||
if ($view->pager->use_count_query() || !empty($view->get_total_rows)) {
|
||||
$view->total_rows = $view->pager->get_total_items();
|
||||
$view->total_rows = $view->pager->getTotalItems();
|
||||
}
|
||||
|
||||
// Load all entities contained in the results.
|
||||
|
|
Loading…
Reference in New Issue