public QueryInterface::pager($limit = 10, $element = NULL)
Enables a pager for the query.
$limit: An integer specifying the number of elements per page. If passed a false value (FALSE, 0, NULL), the pager is disabled.
$element: An optional integer to distinguish between multiple pagers on one page. If not provided, one is automatically calculated.
\Drupal\Core\Entity\Query\QueryInterface The called object.
public function pager($limit = 10, $element = NULL);
© 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!Entity!Query!QueryInterface.php/function/QueryInterface::pager/8.1.x