Skip to content
Snippets Groups Projects
Commit 80656c54 authored by Oleksandr Kuzava's avatar Oleksandr Kuzava
Browse files

Issue #3396598: Call to a member function getFileUri()

parent 05adc54e
No related branches found
No related tags found
1 merge request!89Issue #3396598: Call to a member function getFileUri()
Pipeline #83138 passed
......@@ -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),
......
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