summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-05-20 15:03:40 +0200
committerJoas Schilling <coding@schilljs.com>2022-05-20 15:03:40 +0200
commitad908cd87a0b859a910c0ee6b559ad0abe23b1fa (patch)
tree49d3251779c3de529bca4ca88e4e51cd5303afab
parentbc82fa48d16de0661538410a43de2b6d8c2411cf (diff)
downloadnextcloud-server-ad908cd87a0b859a910c0ee6b559ad0abe23b1fa.tar.gz
nextcloud-server-ad908cd87a0b859a910c0ee6b559ad0abe23b1fa.zip
Make appName of TemplateResponse accessible in BeforeTemplateRenderedEvent
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/public/AppFramework/Http/TemplateResponse.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Http/TemplateResponse.php b/lib/public/AppFramework/Http/TemplateResponse.php
index 9b010d38bae..23843cd21d1 100644
--- a/lib/public/AppFramework/Http/TemplateResponse.php
+++ b/lib/public/AppFramework/Http/TemplateResponse.php
@@ -139,6 +139,15 @@ class TemplateResponse extends Response {
/**
+ * @return string the app id of the used template
+ * @since 25.0.0
+ */
+ public function getApp(): string {
+ return $this->appName;
+ }
+
+
+ /**
* Used for accessing the name of the set template
* @return string the name of the used template
* @since 6.0.0