Mercurial > hg > isophonics-drupal-site
comparison core/modules/media/src/MediaListBuilder.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
113 */ | 113 */ |
114 public function buildRow(EntityInterface $entity) { | 114 public function buildRow(EntityInterface $entity) { |
115 /** @var \Drupal\media\MediaInterface $entity */ | 115 /** @var \Drupal\media\MediaInterface $entity */ |
116 if ($this->thumbnailStyleExists) { | 116 if ($this->thumbnailStyleExists) { |
117 $row['thumbnail'] = []; | 117 $row['thumbnail'] = []; |
118 if ($thumbnail_url = $entity->getSource()->getMetadata($entity, 'thumbnail_uri')) { | 118 if ($thumbnail_uri = $entity->getSource()->getMetadata($entity, 'thumbnail_uri')) { |
119 $row['thumbnail']['data'] = [ | 119 $row['thumbnail']['data'] = [ |
120 '#theme' => 'image_style', | 120 '#theme' => 'image_style', |
121 '#style_name' => 'thumbnail', | 121 '#style_name' => 'thumbnail', |
122 '#uri' => $thumbnail_url, | 122 '#uri' => $thumbnail_uri, |
123 '#height' => 50, | 123 '#height' => 50, |
124 ]; | 124 ]; |
125 } | 125 } |
126 } | 126 } |
127 $row['name']['data'] = [ | 127 $row['name']['data'] = [ |