X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fnode%2Fsrc%2FPlugin%2FAction%2FSaveNode.php;fp=web%2Fcore%2Fmodules%2Fnode%2Fsrc%2FPlugin%2FAction%2FSaveNode.php;h=e358fef36c986411b52f66134e03bceb8e7be5aa;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/core/modules/node/src/Plugin/Action/SaveNode.php b/web/core/modules/node/src/Plugin/Action/SaveNode.php new file mode 100644 index 000000000..e358fef36 --- /dev/null +++ b/web/core/modules/node/src/Plugin/Action/SaveNode.php @@ -0,0 +1,37 @@ +changed = 0; + $entity->save(); + } + + /** + * {@inheritdoc} + */ + public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) { + /** @var \Drupal\node\NodeInterface $object */ + return $object->access('update', $account, $return_as_object); + } + +}