X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FSite%2FSettings.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FSite%2FSettings.php;h=c6fbed659f98767b6979dade6a30a529fc7fb2a0;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=bdd2609a7c020b8fc387e6bc15c01aadaeedbbba;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Site/Settings.php b/web/core/lib/Drupal/Core/Site/Settings.php index bdd2609a7..c6fbed659 100644 --- a/web/core/lib/Drupal/Core/Site/Settings.php +++ b/web/core/lib/Drupal/Core/Site/Settings.php @@ -84,6 +84,9 @@ final class Settings { * The value of the setting, the provided default if not set. */ public static function get($name, $default = NULL) { + if ($name === 'install_profile' && isset(self::$instance->storage[$name])) { + @trigger_error('To access the install profile in Drupal 8 use \Drupal::installProfile() or inject the install_profile container parameter into your service. See https://www.drupal.org/node/2538996', E_USER_DEPRECATED); + } return isset(self::$instance->storage[$name]) ? self::$instance->storage[$name] : $default; }