test
This commit is contained in:
parent
4b6540dfcd
commit
965c015c2c
22 changed files with 396 additions and 299 deletions
16
public/site/plugins/helpers/index.php
Normal file
16
public/site/plugins/helpers/index.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
function getFileData($file) {
|
||||
$data = [
|
||||
'url' => $file->url(),
|
||||
'uuid' => (string) $file->uuid(),
|
||||
'name' => $file->filename(),
|
||||
];
|
||||
|
||||
if ($file->description()->exists()) {
|
||||
$data['description'] = $file->description();
|
||||
$data['tags'] = $file->tags()->split();
|
||||
};
|
||||
|
||||
return $data;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue