You are here

public function DataProviderPlug::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/DataProviderPlug.php, line 52
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderPlug.

Class

DataProviderPlug
Class DataProviderPlug.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function create($object) {
  throw new NotImplementedException('You cannot create plugins through the API.');
}