Skip to content

Commit

Permalink
Fix error caused by rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxp committed Sep 7, 2022
1 parent 5e1d53d commit bf25e24
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ protected function getTileSourceFromRow(ResultRow $row, $iiif_address, $iiif_bas

if (isset($entity->{$viewsField->definition['field_name']})) {

/** @var \Drupal\Core\Field\FieldItemListInterface $images */
$images = $entity->{$viewsField->definition['field_name']};
foreach ($images as $image) {
/** @var \Drupal\Core\Field\FieldItemListInterface $images */
$images = $entity->{$viewsField->definition['field_name']};
foreach ($images as $i => $image) {
if (!$image->entity->access('view')) {
// If the user does not have permission to view the file, skip it.
continue;
}

$ocrs = $entity->{$ocrField->definition['field_name']};
$ocrs = $entity->{$ocrField->definition['field_name']};

// Create the IIIF URL for this file
// Visiting $iiif_url will resolve to the info.json for the image.
Expand Down

0 comments on commit bf25e24

Please sign in to comment.