public function ResponseInterface::setContent in RESTful 7.2
Sets the response content.
Valid types are strings, numbers, NULL, and objects that implement a __toString() method.
Parameters
mixed $content Content that can be cast to string:
Throws
1 method overrides ResponseInterface::setContent()
- Response::setContent in src/
Http/ Response.php - Sets the response content.
File
- src/
Http/ ResponseInterface.php, line 54 - Contains \Drupal\restful\Http\ResponseInterface.
Class
Namespace
Drupal\restful\HttpCode
public function setContent($content);