Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
single_content_sync
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
single_content_sync
Commits
80656c54
Commit
80656c54
authored
1 year ago
by
Oleksandr Kuzava
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3396598
: Call to a member function getFileUri()
parent
05adc54e
No related branches found
No related tags found
1 merge request
!89
Issue #3396598: Call to a member function getFileUri()
Pipeline
#83138
passed
1 year ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/SingleContentSyncFieldProcessor/FileAsset.php
+5
-0
5 additions, 0 deletions
src/Plugin/SingleContentSyncFieldProcessor/FileAsset.php
with
5 additions
and
0 deletions
src/Plugin/SingleContentSyncFieldProcessor/FileAsset.php
+
5
−
0
View file @
80656c54
...
...
@@ -113,6 +113,11 @@ class FileAsset extends SingleContentSyncFieldProcessorPluginBase implements Con
foreach
(
$field
->
getValue
()
as
$item
)
{
$file
=
$file_storage
->
load
(
$item
[
'target_id'
]);
// The file could not be loaded. Check other files in the field.
if
(
!
$file
instanceof
FileInterface
)
{
continue
;
}
$file_item
=
[
'uri'
=>
$file
->
getFileUri
(),
'url'
=>
$file
->
createFileUrl
(
FALSE
),
...
...
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