aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Template/Template.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Files/Template/Template.php')
-rw-r--r--lib/public/Files/Template/Template.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/Files/Template/Template.php b/lib/public/Files/Template/Template.php
index 7f01c2afa48..b3ecbb91073 100644
--- a/lib/public/Files/Template/Template.php
+++ b/lib/public/Files/Template/Template.php
@@ -26,6 +26,8 @@ final class Template implements \JsonSerializable {
private $previewUrl = null;
/** @var list<Field> */
private $fields = [];
+ /** @var string|null */
+ private $fieldsUrl = null;
/**
* @since 21.0.0
@@ -51,6 +53,7 @@ final class Template implements \JsonSerializable {
}
/**
+ * @deprecated
* @param list<Field> $fields
* @since 30.0.0
*/
@@ -59,6 +62,14 @@ final class Template implements \JsonSerializable {
}
/**
+ * @param string $fieldsUrl
+ * @since 32.0.0
+ */
+ public function setFieldsUrl(string $fieldsUrl): void {
+ $this->fieldsUrl = $fieldsUrl;
+ }
+
+ /**
* @return array{
* templateType: string,
* templateId: string,
@@ -72,6 +83,7 @@ final class Template implements \JsonSerializable {
* type: string,
* hasPreview: bool,
* previewUrl: ?string,
+ * fieldsUrl: ?string,
* fields: list<array{
* index: string,
* type: string,
@@ -99,6 +111,7 @@ final class Template implements \JsonSerializable {
'hasPreview' => $this->hasPreview,
'previewUrl' => $this->previewUrl,
'fields' => array_map(static fn (Field $field) => $field->jsonSerialize(), $this->fields),
+ 'fieldsUrl' => $this->fieldsUrl,
];
}
}