Skip to content
Snippets Groups Projects
Unverified Commit b5174621 authored by Julius Härtl's avatar Julius Härtl
Browse files

Add base renderAs template


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent c4a6666e
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,10 @@ class TemplateResponse extends Response { ...@@ -46,6 +46,10 @@ class TemplateResponse extends Response {
* @since 20.0.0 * @since 20.0.0
*/ */
public const RENDER_AS_BLANK = ''; public const RENDER_AS_BLANK = '';
/**
* @since 20.0.0
*/
public const RENDER_AS_BASE = 'base';
/** /**
* @since 20.0.0 * @since 20.0.0
*/ */
...@@ -188,6 +192,7 @@ class TemplateResponse extends Response { ...@@ -188,6 +192,7 @@ class TemplateResponse extends Response {
} elseif (in_array($this->renderAs, [ } elseif (in_array($this->renderAs, [
self::RENDER_AS_GUEST, self::RENDER_AS_GUEST,
self::RENDER_AS_BLANK, self::RENDER_AS_BLANK,
self::RENDER_AS_BASE,
self::RENDER_AS_ERROR, self::RENDER_AS_ERROR,
self::RENDER_AS_PUBLIC, self::RENDER_AS_PUBLIC,
self::RENDER_AS_USER], true)) { self::RENDER_AS_USER], true)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment