Merge pull request #57859 from nextcloud/docs/valid-render-as-for-template-response

docs: annotate valid renderAs values
pull/57874/head
Daniel 3 weeks ago committed by GitHub
commit dde7b7cf87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/workflowengine/lib/Settings/ASettings.php
  2. 2
      lib/public/AppFramework/Http/TemplateResponse.php

@ -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

Loading…
Cancel
Save