comparison 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
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
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.