diff --git a/core/modules/content_translation/src/ContentTranslationHandler.php b/core/modules/content_translation/src/ContentTranslationHandler.php index 4c49a12f16..d3dad8ee80 100644 --- a/core/modules/content_translation/src/ContentTranslationHandler.php +++ b/core/modules/content_translation/src/ContentTranslationHandler.php @@ -632,9 +632,10 @@ public function entityFormSharedElements($element, FormStateInterface $form_stat if ($display_warning) { $url = $entity->getUntranslated()->toUrl('edit-form')->toString(); $message['warning'][] = $this->t('Fields that apply to all languages are hidden to avoid conflicting changes. Edit them on the original language form.', [':url' => $url]); - // Explicitly render this single warning message. Otherwise it will be repeated on ajax operations or when - // submitting the form. All other messages will be rendered in the default location. See - // \Drupal\Core\Render\Element\StatusMessages. + // Explicitly renders this warning message. This prevents repetition on + // AJAX operations or form submission. Other messages will be rendered in + // the default location. + // @see \Drupal\Core\Render\Element\StatusMessages. $element['hidden_fields_warning_message'] = [ '#theme' => 'status_messages', '#message_list' => $message,