]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make appName of TemplateResponse accessible in BeforeTemplateRenderedEvent 32517/head
authorJoas Schilling <coding@schilljs.com>
Fri, 20 May 2022 13:03:40 +0000 (15:03 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 20 May 2022 13:03:40 +0000 (15:03 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/public/AppFramework/Http/TemplateResponse.php

index 9b010d38bae553ca965eb7a0f1f68b742eed64bc..23843cd21d1cd587e1083b8a1c7b5d504a6368f5 100644 (file)
@@ -138,6 +138,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