From f0188fb39cd6757fe9b9f5833af7424fea6de739 Mon Sep 17 00:00:00 2001 From: Dave Long <dave@longwaveconsulting.com> Date: Mon, 22 May 2023 22:50:20 +0100 Subject: [PATCH] Issue #3361730 by Berdir, longwave, DamienMcKenna, borisson_, catch: Rename EntityListBuilder::getQuery() to something less generic --- core/lib/Drupal/Core/Entity/EntityListBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/EntityListBuilder.php b/core/lib/Drupal/Core/Entity/EntityListBuilder.php index d4531bcbf198..04bd9a8ee966 100644 --- a/core/lib/Drupal/Core/Entity/EntityListBuilder.php +++ b/core/lib/Drupal/Core/Entity/EntityListBuilder.php @@ -95,7 +95,7 @@ public function load() { * An array of entity IDs. */ protected function getEntityIds() { - return $this->getQuery()->execute(); + return $this->getEntityListQuery()->execute(); } /** @@ -104,7 +104,7 @@ protected function getEntityIds() { * @return \Drupal\Core\Entity\Query\QueryInterface * A query object used to load entity IDs. */ - protected function getQuery(): QueryInterface { + protected function getEntityListQuery(): QueryInterface { $query = $this->getStorage()->getQuery() ->accessCheck(TRUE) ->sort($this->entityType->getKey('id')); -- GitLab