summaryrefslogtreecommitdiffstats
path: root/core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php')
-rw-r--r--core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php b/core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php
index d03e5d5..9b0e0da 100644
--- a/core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php
+++ b/core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php
@@ -34,11 +34,11 @@ class TranslationLanguageRenderer extends DefaultLanguageRenderer {
// If the data table is defined, we use the translation language as render
// language, otherwise we fall back to the default entity language, which is
// stored in the revision table for revisionable entity types.
- $entity_info = $this->view->rowPlugin->entityManager->getDefinition($this->entityType->id());
+ $langcode_key = $this->entityType->getKey('langcode');
foreach (array('data_table', 'revision_table', 'base_table') as $key) {
- if ($table = $entity_info->get($key)) {
+ if ($table = $this->entityType->get($key)) {
$table_alias = $query->ensureTable($table);
- $this->langcodeAlias = $query->addField($table_alias, 'langcode');
+ $this->langcodeAlias = $query->addField($table_alias, $langcode_key);
break;
}
}