Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / media / src / MediaListBuilder.php
index a0f1f02b21f5c00330e7923899d070883fb046eb..237129bbb02d46b0e103fc187b48e68849b65d62 100644 (file)
@@ -115,11 +115,11 @@ class MediaListBuilder extends EntityListBuilder {
     /** @var \Drupal\media\MediaInterface $entity */
     if ($this->thumbnailStyleExists) {
       $row['thumbnail'] = [];
-      if ($thumbnail_url = $entity->getSource()->getMetadata($entity, 'thumbnail_uri')) {
+      if ($thumbnail_uri = $entity->getSource()->getMetadata($entity, 'thumbnail_uri')) {
         $row['thumbnail']['data'] = [
           '#theme' => 'image_style',
           '#style_name' => 'thumbnail',
-          '#uri' => $thumbnail_url,
+          '#uri' => $thumbnail_uri,
           '#height' => 50,
         ];
       }