projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
locale
/
src
/
Form
/
ImportForm.php
diff --git
a/web/core/modules/locale/src/Form/ImportForm.php
b/web/core/modules/locale/src/Form/ImportForm.php
index a9f15f07f18de6160e565e500965bfcf795cf126..122093ae69d216379b9aa8814900f634354a6c33 100644
(file)
--- a/
web/core/modules/locale/src/Form/ImportForm.php
+++ b/
web/core/modules/locale/src/Form/ImportForm.php
@@
-46,6
+46,7
@@
class ImportForm extends FormBase {
$container->get('language_manager')
);
}
$container->get('language_manager')
);
}
+
/**
* Constructs a form for language import.
*
/**
* Constructs a form for language import.
*
@@
-175,7
+176,7
@@
class ImportForm extends FormBase {
if (empty($language)) {
$language = ConfigurableLanguage::createFromLangcode($form_state->getValue('langcode'));
$language->save();
if (empty($language)) {
$language = ConfigurableLanguage::createFromLangcode($form_state->getValue('langcode'));
$language->save();
-
drupal_set_message
($this->t('The language %language has been created.', ['%language' => $this->t($language->label())]));
+
$this->messenger()->addStatus
($this->t('The language %language has been created.', ['%language' => $this->t($language->label())]));
}
$options = array_merge(_locale_translation_default_update_options(), [
'langcode' => $form_state->getValue('langcode'),
}
$options = array_merge(_locale_translation_default_update_options(), [
'langcode' => $form_state->getValue('langcode'),