Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
acquia_dam-3499668
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
acquia_dam-3499668
Commits
3d981441
Commit
3d981441
authored
1 month ago
by
Ankit Pathak
Browse files
Options
Downloads
Patches
Plain Diff
Adjusting the elvis operator for thumbnail_uri_remote condition.
parent
967b186a
No related branches found
Branches containing commit
Tags
1.0.10
Tags containing commit
No related merge requests found
Pipeline
#396364
passed with warnings
1 month ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/media/Source/Asset.php
+1
-1
1 addition, 1 deletion
src/Plugin/media/Source/Asset.php
with
1 addition
and
1 deletion
src/Plugin/media/Source/Asset.php
+
1
−
1
View file @
3d981441
...
...
@@ -262,7 +262,7 @@ final class Asset extends MediaSourceBase {
return
$this
->
getLocalThumbnailUri
(
$asset_id
,
$version_id
,
$external_id
);
case
'thumbnail_uri_remote'
:
return
$asset
[
'thumbnails'
][
'600px'
][
'url'
]
?:
$this
->
getRemoteThumbnailUri
(
$external_id
);
return
$this
->
getRemoteThumbnailUri
(
$external_id
)
?:
$asset
[
'thumbnails'
][
'600px'
][
'url'
]
;
case
'file'
:
return
$this
->
assetFileHelper
->
downloadFile
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment