QueryInterface::pager

public QueryInterface::pager($limit = 10, $element = NULL)

Enables a pager for the query.

Parameters

$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.

Return value

\Drupal\Core\Entity\Query\QueryInterface The called object.

File

core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 133

Class

QueryInterface
Interface for entity queries.

Namespace

Drupal\Core\Entity\Query

Code

public function pager($limit = 10, $element = NULL);
doc_Drupal
2016-10-29 09:35:59
Comments
Leave a Comment

Please login to continue.