summaryrefslogtreecommitdiffstats
path: root/core/modules/content_translation/src/ContentTranslationHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/content_translation/src/ContentTranslationHandler.php')
-rw-r--r--core/modules/content_translation/src/ContentTranslationHandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/content_translation/src/ContentTranslationHandler.php b/core/modules/content_translation/src/ContentTranslationHandler.php
index 4b87496..88f57ae 100644
--- a/core/modules/content_translation/src/ContentTranslationHandler.php
+++ b/core/modules/content_translation/src/ContentTranslationHandler.php
@@ -145,9 +145,9 @@ class ContentTranslationHandler implements ContentTranslationHandlerInterface {
}
// Locate the language widget.
- $language_field = $this->entityType->getKey('langcode') ?: 'langcode';
- if (isset($form[$language_field])) {
- $language_widget = &$form[$language_field];
+ $langcode_key = $this->entityType->getKey('langcode');
+ if (isset($form[$langcode_key])) {
+ $language_widget = &$form[$langcode_key];
}
// If we are editing the source entity, limit the list of languages so that