Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Site/Settings.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
82 * | 82 * |
83 * @return mixed | 83 * @return mixed |
84 * The value of the setting, the provided default if not set. | 84 * The value of the setting, the provided default if not set. |
85 */ | 85 */ |
86 public static function get($name, $default = NULL) { | 86 public static function get($name, $default = NULL) { |
87 if ($name === 'install_profile' && isset(self::$instance->storage[$name])) { | |
88 @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); | |
89 } | |
87 return isset(self::$instance->storage[$name]) ? self::$instance->storage[$name] : $default; | 90 return isset(self::$instance->storage[$name]) ? self::$instance->storage[$name] : $default; |
88 } | 91 } |
89 | 92 |
90 /** | 93 /** |
91 * Returns all the settings. This is only used for testing purposes. | 94 * Returns all the settings. This is only used for testing purposes. |