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();
return $result ?
array_column($result, 'content_entity_revision_id'
) :
[];
} /**
* {@inheritdoc}
*/
public function buildHeader() {