Updated the Bootstrap theme.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / SettingBase.php
index d8f85c0382f131ae4a192b5430fffcda6cae3967..c368451d5bff75c28482d5663a20ece9e8a425bc 100644 (file)
@@ -178,6 +178,12 @@ class SettingBase extends PluginBase implements SettingInterface {
         $group->$plugin_id->setProperty('description', $description);
       }
     }
+
+    // Hide the setting if is been deprecated.
+    if ($this instanceof DeprecatedSettingInterface) {
+      $group->$plugin_id->access(FALSE);
+    }
+
     return $group->$plugin_id;
   }