You are here

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

InternalServerErrorException

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

ResponseInterface

Namespace

Drupal\restful\Http

Code

public function setContent($content);