public function EntityEnclosingRequest::removePostField

Remove a POST field or file by name

Parameters

string $field Name of the POST field or file to remove:

Return value

EntityEnclosingRequestInterface

Overrides EntityEnclosingRequestInterface::removePostField

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequest.php, line 197

Class

EntityEnclosingRequest
HTTP request that sends an entity-body in the request message (POST, PUT, PATCH, DELETE)

Namespace

Guzzle\Http\Message

Code

public function removePostField($field) {
  $this->postFields
    ->remove($field);
  $this
    ->processPostFields();
  return $this;
}