You are here

public function ServicesResourceControllerInterface::create in Services Entity API 7.2

Create a new resource.

Parameters

string $entity_type: The type of the resource that should be created.

array $values: Array of values for properties of the resource, keyed by property name. At least for all required properties values have to be given.

Return value

int|string The id of the newly created resource.

1 method overrides ServicesResourceControllerInterface::create()
ServicesEntityResourceController::create in plugins/services_entity_resource.inc
Implements ServicesResourceControllerInterface::create().

File

plugins/services_entity_interface.inc, line 50
Services Entity module integration for entities.

Class

ServicesResourceControllerInterface
Specifies CRUD and access methods for resources.

Code

public function create($entity_type, array $values);