Prepares a revision to be reverted.
\Drupal\paragraphs_library\LibraryItemInterface $library_item_revision: The revision to be reverted.
\Drupal\paragraphs_library\LibraryItemInterface The prepared revision ready to be stored.
protected function prepareRevertedRevision(LibraryItemInterface $library_item_revision) {
$library_item_revision
->setNewRevision();
$library_item_revision
->isDefaultRevision(TRUE);
return $library_item_revision;
}