aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorElizabeth Danzberger <lizzy7128@tutanota.de>2024-07-24 15:59:37 -0400
committerJulius Härtl <jus@bitgrid.net>2024-07-25 11:11:40 +0200
commitefe03ee690e2ba8080df63719eff119216c32ddb (patch)
tree2e8a2a879dbd99d54b7cfde680e8468703dc795e /lib/public
parenta7addcb88f22e2ed46b3d2379424f3f41535cd9d (diff)
downloadnextcloud-server-efe03ee690e2ba8080df63719eff119216c32ddb.tar.gz
nextcloud-server-efe03ee690e2ba8080df63719eff119216c32ddb.zip
feat: Add support for filling fields to backend components
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/Template/FileCreatedFromTemplateEvent.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/public/Files/Template/FileCreatedFromTemplateEvent.php b/lib/public/Files/Template/FileCreatedFromTemplateEvent.php
index ed585504f70..0636d1dc251 100644
--- a/lib/public/Files/Template/FileCreatedFromTemplateEvent.php
+++ b/lib/public/Files/Template/FileCreatedFromTemplateEvent.php
@@ -17,15 +17,17 @@ use OCP\Files\File;
class FileCreatedFromTemplateEvent extends Event {
private $template;
private $target;
+ private $templateFields;
/**
* @param File|null $template
* @param File $target
* @since 21.0.0
*/
- public function __construct(?File $template, File $target) {
+ public function __construct(?File $template, File $target, array $templateFields) {
$this->template = $template;
$this->target = $target;
+ $this->templateFields = $templateFields;
}
/**
@@ -37,6 +39,14 @@ class FileCreatedFromTemplateEvent extends Event {
}
/**
+ * @return array
+ * @since 30.0.0
+ */
+ public function getTemplateFields(): array {
+ return $this->templateFields;
+ }
+
+ /**
* @return File
* @since 21.0.0
*/