Read only settings that are initialized with the class.
Name | Modifiers | Type | Description |
---|---|---|---|
Settings::$instance | private static | property | Singleton instance. |
Settings::$storage | private | property | Array with the settings. |
Settings::get | public static | function | Returns a setting. |
Settings::getAll | public static | function | Returns all the settings. This is only used for testing purposes. |
Settings::getApcuPrefix | public static | function | Generates a prefix for APCu user cache keys. |
Settings::getHashSalt | public static | function | Gets a salt useful for hardening against SQL injection. |
Settings::getInstance | public static | function | Returns the settings instance. |
Settings::initialize | public static | function | Bootstraps settings.php and the Settings singleton. |
Settings::__clone | private | function | Protects creating with clone. |
Settings::__construct | public | function | Constructor. |
Settings::__sleep | public | function | Prevents settings from being serialized. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Site!Settings.php/class/Settings/8.1.x