diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-20 15:03:40 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-05-20 15:03:40 +0200 |
commit | ad908cd87a0b859a910c0ee6b559ad0abe23b1fa (patch) | |
tree | 49d3251779c3de529bca4ca88e4e51cd5303afab | |
parent | bc82fa48d16de0661538410a43de2b6d8c2411cf (diff) | |
download | nextcloud-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.php | 9 |
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 |