public function SyncCoreEntityItemResource::post in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 2.1.x src/Plugin/rest/resource/SyncCoreEntityItemResource.php \Drupal\cms_content_sync\Plugin\rest\resource\SyncCoreEntityItemResource::post()
File
- src/
Plugin/ rest/ resource/ SyncCoreEntityItemResource.php, line 217
Class
- SyncCoreEntityItemResource
- Provides entity interfaces for Content Sync, allowing Sync Core v2 to request and manipulate entities.
Namespace
Drupal\cms_content_sync\Plugin\rest\resourceCode
public function post($flow_id, $entity_type, $entity_bundle, $shared_entity_id, array $data) {
return $this
->handleIncomingEntity($flow_id, $entity_type, $entity_bundle, $shared_entity_id, $data, SyncIntent::ACTION_CREATE);
}