From 73be8c49eccae54ca8540dbe56b7d8a1dc4c24df Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Mon, 8 Aug 2016 12:20:37 +0100 Subject: [PATCH] Issue #2611638 by Wim Leers, Nikhilesh Gupta: hook_entity_query_alter() is dead, remove it from entity.api.php --- core/lib/Drupal/Core/Entity/entity.api.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/entity.api.php b/core/lib/Drupal/Core/Entity/entity.api.php index c61c2368e392..fe2e008932a1 100644 --- a/core/lib/Drupal/Core/Entity/entity.api.php +++ b/core/lib/Drupal/Core/Entity/entity.api.php @@ -1252,21 +1252,6 @@ function hook_ENTITY_TYPE_revision_delete(Drupal\Core\Entity\EntityInterface $en } } -/** - * Alter or execute an Drupal\Core\Entity\Query\EntityQueryInterface. - * - * @param \Drupal\Core\Entity\Query\QueryInterface $query - * Note the $query->altered attribute which is TRUE in case the query has - * already been altered once. This happens with cloned queries. - * If there is a pager, then such a cloned query will be executed to count - * all elements. This query can be detected by checking for - * ($query->pager && $query->count), allowing the driver to return 0 from - * the count query and disable the pager. - */ -function hook_entity_query_alter(\Drupal\Core\Entity\Query\QueryInterface $query) { - // @todo: code example. -} - /** * Act on entities being assembled before rendering. * -- GitLab