Skip to content
Snippets Groups Projects
Commit d95a6b00 authored by catch's avatar catch
Browse files

Issue #2977250 by alexpott: Media subsystem 99% of time uses thumbnail URI not URL

parent bb6ea924
No related branches found
No related tags found
No related merge requests found
......@@ -115,11 +115,11 @@ public function buildRow(EntityInterface $entity) {
/** @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,
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment