You are here

private function Resource::doWrite in RESTful 7.2

3 calls to Resource::doWrite()
Resource::doPatch in src/Plugin/resource/Resource.php
Shorthand method to perform a quick PATCH request.
Resource::doPost in src/Plugin/resource/Resource.php
Shorthand method to perform a quick POST request.
Resource::doPut in src/Plugin/resource/Resource.php
Shorthand method to perform a quick PUT request.

File

src/Plugin/resource/Resource.php, line 286
Contains \Drupal\restful\Plugin\resource\Resource.

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

private function doWrite($method, $path, array $parsed_body) {
  $this
    ->setPath($path);
  $this
    ->setRequest(Request::create($this
    ->versionedUrl($path, array(
    'absolute' => FALSE,
  )), array(), $method, NULL, FALSE, NULL, array(), array(), array(), $parsed_body));
  return $this
    ->process();
}