You are here

public function DataProviderResource::create in RESTful 7.2

Create operation.

Parameters

mixed $object: The thing to be created.

Return value

array An array of structured data for the thing that was created.

Overrides CrudInterface::create

File

src/Plugin/resource/DataProvider/DataProviderResource.php, line 97
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderResource.

Class

DataProviderResource
This data provider creates a resource and uses it to access the data.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function create($object) {
  return $this->referencedDataProvider
    ->create($object);
}