Skip to content

Commit

Permalink
abstracted media and file deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
ajstanley committed May 8, 2024
1 parent 03293d8 commit 4f363f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/IslandoraUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ protected function getParentsByEntityReference(ContentEntityInterface $entity, a
/**
* Deletes Media and all associated files.
*
* @param object $media_ids
* @param object $media
* Ids of media to be deleted.
*
* @return array
Expand All @@ -783,7 +783,6 @@ protected function getParentsByEntityReference(ContentEntityInterface $entity, a
*/
public function deleteMediaAndFiles($media) {
$results = [];
$total_count = 0;
$delete_media = [];
$delete_files = [];
$inaccessible_entities = [];
Expand Down

0 comments on commit 4f363f7

Please sign in to comment.