We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd6f43 commit 9325503Copy full SHA for 9325503
src/Plugin/Action/StrawberryfieldJsonPatch.php
@@ -281,6 +281,14 @@ public function execute($entity = NULL) {
281
282
]);
283
if (!$this->configuration['simulate']) {
284
+ if ($entity->getEntityType()->isRevisionable()) {
285
+ // Forces a New Revision for Not-create Operations.
286
+ $entity->setNewRevision(TRUE);
287
+ $entity->setRevisionCreationTime(\Drupal::time()->getRequestTime());
288
+ // Set data for the revision
289
+ $entity->setRevisionLogMessage('ADO modified via JSON Patch Search And Replace with Patch:'. $this->configuration['jsonpatch']);
290
+ $entity->setRevisionUserId($this->currentUser->id());
291
+ }
292
$entity->save();
293
}
294
0 commit comments