summaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Template/TemplateFileCreator.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Files/Template/TemplateFileCreator.php')
-rw-r--r--lib/public/Files/Template/TemplateFileCreator.php22
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/public/Files/Template/TemplateFileCreator.php b/lib/public/Files/Template/TemplateFileCreator.php
index 26edf585869..8a396be30e2 100644
--- a/lib/public/Files/Template/TemplateFileCreator.php
+++ b/lib/public/Files/Template/TemplateFileCreator.php
@@ -37,6 +37,10 @@ final class TemplateFileCreator implements \JsonSerializable {
protected $iconClass;
protected $ratio = null;
protected $order = 100;
+ /**
+ * @since 27.0.0
+ */
+ protected string $actionLabel;
/**
* @since 21.0.0
@@ -104,6 +108,21 @@ final class TemplateFileCreator implements \JsonSerializable {
}
/**
+ * @since 27.0.0
+ */
+ public function setActionLabel(string $actionLabel): TemplateFileCreator {
+ $this->actionLabel = $actionLabel;
+ return $this;
+ }
+
+ /**
+ * @since 27.0.0
+ */
+ public function getActionLabel(): string {
+ return $this->actionLabel;
+ }
+
+ /**
* @since 21.0.0
*/
public function jsonSerialize(): array {
@@ -113,7 +132,8 @@ final class TemplateFileCreator implements \JsonSerializable {
'extension' => $this->fileExtension,
'iconClass' => $this->iconClass,
'mimetypes' => $this->mimetypes,
- 'ratio' => $this->ratio
+ 'ratio' => $this->ratio,
+ 'actionLabel' => $this->actionLabel,
];
}
}