summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Entity/Node.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2015-06-29 15:22:57 +0100
committerNathaniel Catchpole2015-06-29 15:22:57 +0100
commit131d5772ba82f40dab7252c25ba3d5fcf291963a (patch)
treeb4078841c0c396f754341ec734b70a7291eb9a19 /core/modules/node/src/Entity/Node.php
parent97202a7012cfe099c835233dc747e8b3117e51bc (diff)
Issue #2453153 by mkalkbrenner, plach: Node revisions cannot be reverted per translation
Diffstat (limited to 'core/modules/node/src/Entity/Node.php')
-rw-r--r--core/modules/node/src/Entity/Node.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php
index 6dd1229..2f57843 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -494,6 +494,13 @@ class Node extends ContentEntityBase implements NodeInterface {
),
));
+ $fields['revision_translation_affected'] = BaseFieldDefinition::create('boolean')
+ ->setLabel(t('Revision translation affected'))
+ ->setDescription(t('Indicates if the last edit of a translation belongs to current revision.'))
+ ->setReadOnly(TRUE)
+ ->setRevisionable(TRUE)
+ ->setTranslatable(TRUE);
+
return $fields;
}