You are here

private function ResourceDecoratorBase::doWrite in RESTful 7.2

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

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 369
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

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();
}