Updated the Bootstrap theme.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Form / SystemThemeSettings.php
index 35bbcb15d3b563801db9e62388aa459fc522147c..298108856782f956967ec8843f9686f9a367e4a7 100644 (file)
@@ -3,6 +3,7 @@
 namespace Drupal\bootstrap\Plugin\Form;
 
 use Drupal\bootstrap\Bootstrap;
+use Drupal\bootstrap\Plugin\Setting\DeprecatedSettingInterface;
 use Drupal\bootstrap\Utility\Element;
 use Drupal\Core\Form\FormStateInterface;
 
@@ -122,6 +123,12 @@ class SystemThemeSettings extends FormBase implements FormInterface {
     // Iterate over all setting plugins and manually save them since core's
     // process is severely limiting and somewhat broken.
     foreach ($theme->getSettingPlugin() as $name => $setting) {
+      // Skip saving deprecated settings.
+      if ($setting instanceof DeprecatedSettingInterface) {
+        $form_state->unsetValue($name);
+        continue;
+      }
+
       // Allow the setting to participate in the form submission process.
       // Must call the "submitForm" method in case any setting actually uses it.
       // It should, in turn, invoke "submitFormElement", if the setting that