Skip to content

Commit

Permalink
NBNP-448 Load file by id(), not uri()
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Jun 25, 2024
1 parent eb00bc4 commit 095c2f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public static function getPagesNeedingToMove($limit = 50) {
$file = \Drupal\file\Entity\File::load($fid);
$page = \Drupal::entityTypeManager()
->getStorage('digital_serial_page')
->loadByProperties(['page_image' => $file->getFileUri()]);
->loadByProperties(['page_image' => $file->id()]);
if ($page != NULL) {
$pages[] = $page;
}
Expand Down

0 comments on commit 095c2f0

Please sign in to comment.