You are here

public function ResourceInterface::doPut in RESTful 7.2

Shorthand method to perform a quick PUT 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::doPut()
Resource::doPut in src/Plugin/resource/Resource.php
Shorthand method to perform a quick PUT request.
ResourceDecoratorBase::doPut in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Shorthand method to perform a quick PUT request.

File

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

Class

ResourceInterface
Interface ResourceInterface.

Namespace

Drupal\restful\Plugin\resource

Code

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