public function ResourceDecoratorBase::doPost in RESTful 7.2
Shorthand method to perform a quick POST request.
Parameters
array $parsed_body: The parsed body.
Return value
array The array ready for the formatter.
Overrides ResourceInterface::doPost
File
- src/
Plugin/ resource/ Decorators/ ResourceDecoratorBase.php, line 342 - Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.
Class
- ResourceDecoratorBase
- Class ResourceDecoratorBase.
Namespace
Drupal\restful\Plugin\resource\DecoratorsCode
public function doPost(array $parsed_body) {
return $this
->doWrite(RequestInterface::METHOD_POST, '', $parsed_body);
}