aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorElizabeth Danzberger <lizzy7128@tutanota.de>2024-07-16 15:54:31 -0400
committerJulius Härtl <jus@bitgrid.net>2024-07-25 11:11:40 +0200
commit8ac706a520952fbfa5a8e665861d8ec924272acd (patch)
treecce6cc459588c97021046f2a73bef25e3aa38ab6 /lib
parent6cd83fc96ac8f79107f911271c678285e876d85d (diff)
downloadnextcloud-server-8ac706a520952fbfa5a8e665861d8ec924272acd.tar.gz
nextcloud-server-8ac706a520952fbfa5a8e665861d8ec924272acd.zip
fix(api): Add alias to `Field`
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/Files/Template/Field.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/public/Files/Template/Field.php b/lib/public/Files/Template/Field.php
index c86a623f980..ea200b74a00 100644
--- a/lib/public/Files/Template/Field.php
+++ b/lib/public/Files/Template/Field.php
@@ -7,17 +7,17 @@
namespace OCP\Files\Template;
-use OCP\Files\Template\InvalidFieldTypeException;
-
class Field implements \JsonSerializable {
private string $index;
private string $content;
private FieldType $type;
+ private ?string $alias;
private ?int $id;
private ?string $tag;
- public function __construct($index, $content, $type, $id = null, $tag = null) {
+ public function __construct($index, $content, $type, $alias = null, $id = null, $tag = null) {
$this->index = $index;
+ $this->alias = $alias;
$this->id = $id;
$this->tag = $tag;
$this->content = $content;
@@ -34,6 +34,7 @@ class Field implements \JsonSerializable {
"index" => $this->index,
"content" => $this->content,
"type" => $this->type->value,
+ "alias" => $this->alias,
"id" => $this->id,
"tag" => $this->tag,
];