I’m trying to convert a $files-collection into an array with URLs of each file and don’t know how to achieve this. In the docs i found an article how to convert a page object into a PHP array and also the same with a collection.
Maybe one of you can help me with the correct $callback or a better way to achieve it.
This is how the array should look like:
array(
‘mysite.com/content/home/image-1.jpg’,
‘mysite.com/content/home/image-2.jpg’,
‘mysite.com/content/home/image-3.jpg’
)