mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Merge pull request #57859 from nextcloud/docs/valid-render-as-for-template-response
docs: annotate valid renderAs values
This commit is contained in:
@@ -77,7 +77,7 @@ abstract class ASettings implements ISettings {
|
||||
$this->urlGenerator->linkToDocs('admin-workflowengine')
|
||||
);
|
||||
|
||||
return new TemplateResponse(Application::APP_ID, 'settings', [], 'blank');
|
||||
return new TemplateResponse(Application::APP_ID, 'settings', [], TemplateResponse::RENDER_AS_BLANK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -74,12 +74,12 @@ class TemplateResponse extends Response {
|
||||
protected $appName;
|
||||
|
||||
/**
|
||||
* constructor of TemplateResponse
|
||||
* @param string $appName the name of the app to load the template from
|
||||
* @param string $templateName the name of the template
|
||||
* @param array $params an array of parameters which should be passed to the
|
||||
* template
|
||||
* @param string $renderAs how the page should be rendered, defaults to user
|
||||
* @psalm-param TemplateResponse::RENDER_AS_* $renderAs
|
||||
* @param S $status
|
||||
* @param H $headers
|
||||
* @since 6.0.0 - parameters $params and $renderAs were added in 7.0.0
|
||||
|
||||
Reference in New Issue
Block a user