Interface yii\web\ResponseFormatterInterface
| Implemented by | yii\ |
|---|---|
| Available since version | 2.0 |
| Source Code | https://github.com/yiisoft/yii2/blob/master/framework/web/ResponseFormatterInterface.php |
ResponseFormatterInterface specifies the interface needed to format a response before it is sent out.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| format() | Formats the specified response. | yii\ |
Method Details
Formats the specified response.
| public abstract mixed format ( yii\ | ||
| $response | yii\ |
The response to be formatted. |
public function format($response);
User Contributed Notes
Leave a comment
Join the conversation to share a note.