updated core from 8.4 to 8.5 : bug with login_destination
This commit is contained in:
@@ -14,6 +14,8 @@ use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||
|
||||
/**
|
||||
* Form for the Gettext translation files export form.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class ExportForm extends FormBase {
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
|
||||
/**
|
||||
* Form constructor for the translation import screen.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class ImportForm extends FormBase {
|
||||
|
||||
@@ -108,6 +110,7 @@ class ImportForm extends FormBase {
|
||||
],
|
||||
'#size' => 50,
|
||||
'#upload_validators' => $validators,
|
||||
'#upload_location' => 'translations://',
|
||||
'#attributes' => ['class' => ['file-import-input']],
|
||||
];
|
||||
$form['langcode'] = [
|
||||
@@ -154,7 +157,7 @@ class ImportForm extends FormBase {
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function validateForm(array &$form, FormStateInterface $form_state) {
|
||||
$this->file = file_save_upload('file', $form['file']['#upload_validators'], 'translations://', 0);
|
||||
$this->file = _file_save_upload_from_form($form['file'], $form_state, 0);
|
||||
|
||||
// Ensure we have the file uploaded.
|
||||
if (!$this->file) {
|
||||
|
||||
@@ -7,6 +7,8 @@ use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
/**
|
||||
* Configure locale settings for this site.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class LocaleSettingsForm extends ConfigFormBase {
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ use Drupal\locale\SourceString;
|
||||
|
||||
/**
|
||||
* Defines a translation edit form.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class TranslateEditForm extends TranslateFormBase {
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
/**
|
||||
* Provides a filtered translation edit form.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class TranslateFilterForm extends TranslateFormBase {
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
|
||||
/**
|
||||
* Provides a translation status form.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class TranslationStatusForm extends FormBase {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user