summaryrefslogtreecommitdiffstats
path: root/core/modules/views/src/EntityViewsData.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/views/src/EntityViewsData.php')
-rw-r--r--core/modules/views/src/EntityViewsData.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php
index 9f361c7..cb30422 100644
--- a/core/modules/views/src/EntityViewsData.php
+++ b/core/modules/views/src/EntityViewsData.php
@@ -390,7 +390,7 @@ class EntityViewsData implements EntityHandlerInterface, EntityViewsDataInterfac
*/
protected function processViewsDataForLanguage($table, FieldDefinitionInterface $field_definition, array &$views_field, $field_column_name) {
// Apply special titles for the langcode field.
- if ($field_definition->getName() == 'langcode') {
+ if ($field_definition->getName() == $this->entityType->getKey('langcode')) {
if ($table == $this->entityType->getDataTable() || $table == $this->entityType->getRevisionDataTable()) {
$views_field['title'] = $this->t('Translation language');
}