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 86642f2Copy full SHA for 86642f2
src/lib/eZ/FieldType/RichText/RichTextStorage/Gateway.php
@@ -81,11 +81,16 @@ 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
+ foreach ($rows as $url) {
90
+ $result[$url] = true;
91
+ }
92
+
93
+ return $result;
94
}
95
96
0 commit comments