summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Entity/Node.php
diff options
context:
space:
mode:
authorAlex Pott2015-03-10 20:53:21 +0000
committerAlex Pott2015-03-10 20:55:47 +0000
commitdc3d8a01b852cd9e0848db9e7bda447c0b0226e8 (patch)
tree1bfabe4f6e2a692faafb26cd422955bb8146a207 /core/modules/node/src/Entity/Node.php
parent1483ef103468962ca0d94f8668be69ef3b5b2c42 (diff)
Issue #2431329 by plach: Make (content) translation language available as a field definition
Diffstat (limited to 'core/modules/node/src/Entity/Node.php')
-rw-r--r--core/modules/node/src/Entity/Node.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php
index 13ad744..6e33d27 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -353,6 +353,7 @@ class Node extends ContentEntityBase implements NodeInterface {
$fields['langcode'] = BaseFieldDefinition::create('language')
->setLabel(t('Language'))
->setDescription(t('The node language code.'))
+ ->setTranslatable(TRUE)
->setRevisionable(TRUE)
->setDisplayOptions('view', array(
'type' => 'hidden',