public function RestWSFormatInterface::createResource in RESTful Web Services 7.2
Same name and namespace in other branches
- 7 restws.formats.inc \RestWSFormatInterface::createResource()
Create a resource.
Parameters
RestWSResourceControllerInterface $resourceController: The controller used to create the resource.
string $data: The representation of the resource.
Return value
int|string The id of the newly created resource.
1 method overrides RestWSFormatInterface::createResource()
- RestWSBaseFormat::createResource in ./
restws.formats.inc - Creates a new resource.
File
- ./
restws.formats.inc, line 37 - RESTful web services module formats.
Class
- RestWSFormatInterface
- Interface implemented by formatter implementations for the http client.
Code
public function createResource($resourceController, $data);