summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2016-01-08 11:41:14 (GMT)
committerAlex Pott2016-01-08 11:41:14 (GMT)
commit79ee24dd9f668ba7ee2d7e2c58179ce38f58af88 (patch)
tree4ebff90fad5d35f18a9e2c873d23e2bf28d84874
parentd04f659f3e132971cc0650141e7f0a00d6c82fd6 (diff)
Issue #2644734 by znerol: Replace confusing comment in PagerSelectExtender::execute()
-rw-r--r--core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php b/core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php
index 95cdf53..2a811e6 100644
--- a/core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php
+++ b/core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php
@@ -64,10 +64,9 @@ class PagerSelectExtender extends SelectExtender {
* to it.
*/
public function execute() {
-
- // Add convenience tag to mark that this is an extended query. We have to
- // do this in the constructor to ensure that it is set before preExecute()
- // gets called.
+ // By calling preExecute() here, we force it to preprocess the extender
+ // object rather than just the base query object. That means
+ // hook_query_alter() gets access to the extended object.
if (!$this->preExecute($this)) {
return NULL;
}