public function DataProviderResourceInterface::merge in RESTful 7.2
Create or update an item based on the payload.
Parameters
mixed $identifier: The resource item identifier.
mixed $object: The payload.
Return value
mixed The identifier of the created or updated resource item.
1 method overrides DataProviderResourceInterface::merge()
- DataProviderResource::merge in src/
Plugin/ resource/ DataProvider/ DataProviderResource.php - Create or update an item based on the payload.
File
- src/
Plugin/ resource/ DataProvider/ DataProviderResourceInterface.php, line 40 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderResourceInterface.
Class
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function merge($identifier, $object);