summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Entity/Node.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-02-23 13:45:30 +0000
committerNathaniel Catchpole2017-02-23 13:45:30 +0000
commit4b325ae0c70959714325fbec811b359894cd1d27 (patch)
tree778e5cf7964fa369bbe5e2822d25d457917ba91a /core/modules/node/src/Entity/Node.php
parent801f6ca130b5776cb032f6dbd5b4aad69b39e079 (diff)
Issue #2248983 by hchonov, amateescu, paranojik, timmillwood, tstoeckler, catch, Berdir, alexpott: Define the revision metadata base fields in the entity annotation in order for the storage to create them only in the revision table
Diffstat (limited to 'core/modules/node/src/Entity/Node.php')
-rw-r--r--core/modules/node/src/Entity/Node.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php
index 0edb58f..13192cf 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -61,6 +61,11 @@ use Drupal\user\UserInterface;
* "published" = "status",
* "uid" = "uid",
* },
+ * revision_metadata_keys = {
+ * "revision_user" = "revision_uid",
+ * "revision_created" = "revision_timestamp",
+ * "revision_log_message" = "revision_log"
+ * },
* bundle_entity_type = "node_type",
* field_ui_base_route = "entity.node_type.edit_form",
* common_reference_target = TRUE,