We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3a9c99 commit 95030edCopy full SHA for 95030ed
src/AssetApiServiceBase.php
@@ -27,10 +27,14 @@ public function __construct(FileUrlGeneratorInterface $file_url_generator) {
27
* Get basic information from a file.
28
*/
29
public function getFileData($file) {
30
+
31
+ $uri = $file->getFileUri();
32
+ $url = $this->fileUrlGenerator->generateAbsoluteString($uri);
33
34
$data = [
- 'uri' => $file->getFileUri(),
- 'url' => $file->url(),
- 'relativePath' => $this->getRelativePath($file->url()),
35
+ 'uri' => $uri,
36
+ 'url' => $url,
37
+ 'relativePath' => $this->getRelativePath($url),
38
];
39
40
return $data;
0 commit comments