diff --git a/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php b/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php index c3cf1acbe81..f872f7d07c6 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php +++ b/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php @@ -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(); } /** diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php index e8898221342..3903da1ae20 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php @@ -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; } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php index 826985cb405..3e5d77519a1 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php @@ -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.