comments working
This commit is contained in:
parent
375bed1d01
commit
0b472988a2
14 changed files with 107 additions and 59 deletions
|
|
@ -7,17 +7,20 @@ class FileDetails
|
|||
{
|
||||
public string $uuid;
|
||||
public string $url;
|
||||
public string $type;
|
||||
|
||||
public function __construct(Kirby\Cms\File $data)
|
||||
{
|
||||
$this->uuid = (string) $data->uuid();
|
||||
$this->url = (string) $data->url();
|
||||
$this->type = (string) $data->type();
|
||||
}
|
||||
|
||||
public function toArray() {
|
||||
return [
|
||||
"uuid" => $this->uuid,
|
||||
"url" => $this->url
|
||||
"url" => $this->url,
|
||||
"type" => $this->type
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue