X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fthemes%2Fcontrib%2Fbootstrap%2Fsrc%2FPlugin%2FSetting%2FSettingBase.php;fp=web%2Fthemes%2Fcontrib%2Fbootstrap%2Fsrc%2FPlugin%2FSetting%2FSettingBase.php;h=c368451d5bff75c28482d5663a20ece9e8a425bc;hb=dd08b95e4e519a02d45a50fb504bf5d685eaa9e3;hp=d8f85c0382f131ae4a192b5430fffcda6cae3967;hpb=0bf8d09d2542548982e81a441b1f16e75873a04f;p=yaffs-website diff --git a/web/themes/contrib/bootstrap/src/Plugin/Setting/SettingBase.php b/web/themes/contrib/bootstrap/src/Plugin/Setting/SettingBase.php index d8f85c038..c368451d5 100644 --- a/web/themes/contrib/bootstrap/src/Plugin/Setting/SettingBase.php +++ b/web/themes/contrib/bootstrap/src/Plugin/Setting/SettingBase.php @@ -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; }