From ad908cd87a0b859a910c0ee6b559ad0abe23b1fa Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 20 May 2022 15:03:40 +0200 Subject: [PATCH] Make appName of TemplateResponse accessible in BeforeTemplateRenderedEvent Signed-off-by: Joas Schilling --- lib/public/AppFramework/Http/TemplateResponse.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ -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 -- 2.39.5