protected function PagerSelectExtender::ensureElement
protected PagerSelectExtender::ensureElement()
Ensure that there is an element associated with this query. If an element was not specified previously, then the value of the $maxElement counter is taken, after which the counter is incremented.
After running this method, access $this->element to get the element for this query.
File
- core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php, line 91
Class
- PagerSelectExtender
- Query extender for pager queries.
Namespace
Drupal\Core\Database\QueryCode
protected function ensureElement() { if (!isset($this->element)) { $this->element = self::$maxElement++; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Query!PagerSelectExtender.php/function/PagerSelectExtender::ensureElement/8.1.x