You are here

public function ResourceInterface::doPatch in RESTful 7.2

Shorthand method to perform a quick PATCH request.

Parameters

string $path: The resource path.

array $parsed_body: The parsed body.

Return value

array The array ready for the formatter.

Throws

\Drupal\restful\Exception\BadRequestException When the path is not present.

2 methods override ResourceInterface::doPatch()
Resource::doPatch in src/Plugin/resource/Resource.php
Shorthand method to perform a quick PATCH request.
ResourceDecoratorBase::doPatch in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Shorthand method to perform a quick PATCH request.

File

src/Plugin/resource/ResourceInterface.php, line 424
Contains \Drupal\restful\Plugin\resource\ResourceInterface.

Class

ResourceInterface
Interface ResourceInterface.

Namespace

Drupal\restful\Plugin\resource

Code

public function doPatch($path, array $parsed_body);