Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / system / tests / themes / test_theme_settings / theme-settings.php
index 7f3c1395f9fb5b199831f2c1d254c7dc34176ce9..1255c65379a054e64edc47a79db873a52079bacf 100644 (file)
@@ -24,6 +24,17 @@ function test_theme_settings_form_system_theme_settings_alter(&$form, FormStateI
     ],
   ];
 
+  $form['multi_file'] = [
+    '#type' => 'managed_file',
+    '#title' => t('Multiple file field with all file extensions'),
+    '#multiple' => TRUE,
+    '#default_value' => theme_get_setting('multi_file'),
+    '#upload_location' => 'public://test',
+    '#upload_validators'  => [
+      'file_validate_extensions' => [],
+    ],
+  ];
+
   $form['#submit'][] = 'test_theme_settings_form_system_theme_settings_submit';
 }