public function RequestContentProxy::getContent

Returns the request body content.

Parameters

Boolean $asResource If true, a resource will be returned:

Return value

string|resource The request body content or a resource to read the body stream.

Throws

\LogicException

Overrides Request::getContent

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RequestTest.php, line 1508

Class

RequestContentProxy

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function getContent($asResource = false) {
  return http_build_query(array(
    '_method' => 'PUT',
    'content' => 'mycontent',
  ));
}