$this->latestRevision = FALSE;
return $this;
} /**
* {@inheritdoc}
*/
public function pager($limit = 10,
$element = NULL
) { // Even when not using SQL, storing the element PagerSelectExtender is as
// good as anywhere else.
if (!
isset($element)) { $element = \Drupal::
service('pager.manager'
)->
getMaxPagerElementId() + 1;
} $this->pager =
[ 'limit' =>
$limit,
'element' =>
$element,
];
return $this;
} /**
* Gets the total number of results and initialize a pager for the query.
*
* The pager can be disabled by either setting the pager limit to 0, or by
* setting this query to be a count query.
*/