/**
* Loads entity revision IDs using a pager sorted by the entity revision ID.
*
* @return array
* An array of entity revision IDs.
*/
protected function getEntityRevisionIds() { $query =
$this->entityTypeManager->
getStorage('content_moderation_state'
)->
getAggregateQuery() ->
accessCheck(TRUE
) ->
aggregate('content_entity_id', 'MAX'
) ->
groupBy('content_entity_revision_id'
) ->
condition('content_entity_type_id',
$this->entityTypeId
) ->
condition('moderation_state', 'published', '<>'
) ->
sort('content_entity_revision_id', 'DESC'
);
// Only add the pager if a limit is specified.
if ($this->limit
) { $query->
pager($this->limit
);
} $result =
$query->
execute();