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 e6f6d4e commit 0a3c480Copy full SHA for 0a3c480
src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php
@@ -81,11 +81,17 @@ public function insertUrl($url)
81
/**
82
* Return a list of URLs used by the given field and version.
83
*
84
- * @return bool[] An array of URLs, with urls as keys
+ * array<string, boolean> An array of URLs, with urls as keys
85
*/
86
public function getUrlsFromUrlLink(int $fieldId, int $versionNo): array
87
{
88
- return $this->urlGateway->getUrlsFromUrlLink($fieldId, $versionNo);
+ $rows = $this->urlGateway->getUrlsFromUrlLink($fieldId, $versionNo);
89
+ $result = [];
90
+ foreach ($rows as $url) {
91
+ $result[$url] = true;
92
+ }
93
+
94
+ return $result;
95
}
96
97
0 commit comments