aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-04 07:51:14 +0200
committerJulius Härtl <jus@bitgrid.net>2020-08-04 09:48:43 +0200
commitb51746212e115fc0119377605207b4be2eeeb1a6 (patch)
treef122596aa44d2f04dc93ca920760486f41c39c1e /lib/public
parentc4a6666e6c210079df9ac9f4c0f68d832fc23e60 (diff)
downloadnextcloud-server-b51746212e115fc0119377605207b4be2eeeb1a6.tar.gz
nextcloud-server-b51746212e115fc0119377605207b4be2eeeb1a6.zip
Add base renderAs template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Http/TemplateResponse.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Http/TemplateResponse.php b/lib/public/AppFramework/Http/TemplateResponse.php
index 9622d9696dc..3885f57aaa1 100644
--- a/lib/public/AppFramework/Http/TemplateResponse.php
+++ b/lib/public/AppFramework/Http/TemplateResponse.php
@@ -49,6 +49,10 @@ class TemplateResponse extends Response {
/**
* @since 20.0.0
*/
+ public const RENDER_AS_BASE = 'base';
+ /**
+ * @since 20.0.0
+ */
public const RENDER_AS_USER = 'user';
/**
* @since 20.0.0
@@ -188,6 +192,7 @@ class TemplateResponse extends Response {
} elseif (in_array($this->renderAs, [
self::RENDER_AS_GUEST,
self::RENDER_AS_BLANK,
+ self::RENDER_AS_BASE,
self::RENDER_AS_ERROR,
self::RENDER_AS_PUBLIC,
self::RENDER_AS_USER], true)) {