Mercurial > hg > isophonics-drupal-site
diff core/modules/content_translation/src/ContentTranslationHandler.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/content_translation/src/ContentTranslationHandler.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/content_translation/src/ContentTranslationHandler.php Thu Feb 28 13:21:36 2019 +0000 @@ -512,10 +512,6 @@ '#default_value' => $new_translation || !$date ? '' : format_date($date, 'custom', 'Y-m-d H:i:s O'), ]; - if (isset($language_widget)) { - $language_widget['#multilingual'] = TRUE; - } - $form['#process'][] = [$this, 'entityFormSharedElements']; } @@ -734,7 +730,7 @@ 'target' => $form_object->getFormLangcode($form_state), ]); $languages = $this->languageManager->getLanguages(); - drupal_set_message(t('Source language set to: %language', ['%language' => $languages[$source]->getName()])); + $this->messenger->addStatus(t('Source language set to: %language', ['%language' => $languages[$source]->getName()])); } /** @@ -746,7 +742,7 @@ $form_object = $form_state->getFormObject(); $entity = $form_object->getEntity(); if (count($entity->getTranslationLanguages()) > 1) { - drupal_set_message(t('This will delete all the translations of %label.', ['%label' => $entity->label()]), 'warning'); + $this->messenger->addWarning(t('This will delete all the translations of %label.', ['%label' => $entity->label()])); } }