|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| setHttpResponseCode ($httpCode) | |
| setHeader ($name, $value, $replace=false) | |
| renderResult (ResponseInterface $response) | |
An abstraction of result that controller actions must return The point of this kind of object is to encapsulate all information/objects relevant to the result and be able to set it to the HTTP response
@api
Definition at line 19 of file ResultInterface.php.
| renderResult | ( | ResponseInterface | $response | ) |
Render result and set to response
| ResponseInterface | $response |
Implemented in Layout, and AbstractResult.
| setHeader | ( | $name, | |
| $value, | |||
$replace = false |
|||
| ) |
Set a header
If $replace is true, replaces any headers already defined with that $name.
| string | $name | |
| string | $value | |
| boolean | $replace |
Implemented in AbstractResult.
| setHttpResponseCode | ( | $httpCode | ) |