Mercurial > hg > cmmr2012-drupal-site
diff core/lib/Drupal/Core/Site/Settings.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Site/Settings.php Thu Feb 28 11:14:44 2019 +0000 +++ b/core/lib/Drupal/Core/Site/Settings.php Thu Feb 28 13:11:55 2019 +0000 @@ -84,6 +84,9 @@ * 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; }