Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <mail@danielkesselberg.de>2022-05-20 18:17:58 +0300
committerGitHub <noreply@github.com>2022-05-20 18:17:58 +0300
commit1629b55f51f7dcac6c67ea2bad9185e40da8ac37 (patch)
tree450d04c10e5079e456112293a4fed9c52a45890f
parent6fdeb9b41735e04821cb973a23e0a36a20a8d268 (diff)
parentad908cd87a0b859a910c0ee6b559ad0abe23b1fa (diff)
Merge pull request #32517 from nextcloud/bugfix/noid/make-appname-accessible
Make appName of TemplateResponse accessible in BeforeTemplateRendered…
-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