Gets a list of library item revision IDs for a specific library item.
\Drupal\paragraphs_library\LibraryItemInterface $library_item: Library item entity.
int[] Library item revision IDs (in descending order)
protected function getRevisionIds(LibraryItemInterface $library_item) {
$result = $this->entityTypeManager
->getStorage('paragraphs_library_item')
->getQuery()
->allRevisions()
->condition('id', $library_item
->id())
->accessCheck(TRUE)
->sort($library_item
->getEntityType()
->getKey('revision'), 'DESC')
->pager(50)
->execute();
return array_keys($result);
}