Settings::getAll

public static Settings::getAll() Returns all the settings. This is only used for testing purposes. Return value array All the settings. File core/lib/Drupal/Core/Site/Settings.php, line 90 Class Settings Read only settings that are initialized with the class. Namespace Drupal\Core\Site Code public static function getAll() { return self::$instance->storage; }

Settings::$instance

Singleton instance. Type: \Drupal\Core\Site\Settings File core/lib/Drupal/Core/Site/Settings.php, line 27 Class Settings Read only settings that are initialized with the class. Namespace Drupal\Core\Site Code private static $instance;

Settings::$storage

Array with the settings. Type: array File core/lib/Drupal/Core/Site/Settings.php, line 20 Class Settings Read only settings that are initialized with the class. Namespace Drupal\Core\Site Code private $storage = array();

Settings::getHashSalt

public static Settings::getHashSalt() Gets a salt useful for hardening against SQL injection. Return value string A salt based on information in settings.php, not in the database. Throws \RuntimeException File core/lib/Drupal/Core/Site/Settings.php, line 134 Class Settings Read only settings that are initialized with the class. Namespace Drupal\Core\Site Code public static function getHashSalt() { $hash_salt = self::$instance->get('hash_salt'); // This should never happen, as

Settings::get

public static Settings::get($name, $default = NULL) Returns a setting. Settings can be set in settings.php in the $settings array and requested by this function. Settings should be used over configuration for read-only, possibly low bootstrap configuration that is environment specific. Parameters string $name: The name of the setting to return. mixed $default: (optional) The default value to use if this setting is not set. Return value mixed The value of the setting, the provided default if n

Settings::getApcuPrefix

public static Settings::getApcuPrefix($identifier, $root, $site_path = '') Generates a prefix for APCu user cache keys. A standardized prefix is useful to allow visual inspection of an APCu user cache. By default, this method will produce a unique prefix per site using the hash salt. If the setting 'apcu_ensure_unique_prefix' is set to FALSE then if the caller does not provide a $site_path only the Drupal root will be used. This allows WebTestBase to use the same prefix ensuring that the number

SetSubtreesCommand

Defines an AJAX command that sets the toolbar subtrees. Hierarchy class \Drupal\toolbar\Ajax\SetSubtreesCommand implements CommandInterface File core/modules/toolbar/src/Ajax/SetSubtreesCommand.php, line 10 Namespace Drupal\toolbar\Ajax Members Name Modifiers Type Description SetSubtreesCommand::$subtrees protected property The toolbar subtrees. SetSubtreesCommand::render public function Return an array to be run through json_encode and sent to the client. Overri

Settings

Read only settings that are initialized with the class. Hierarchy class \Drupal\Core\Site\Settings Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Core/Site/Settings.php, line 13 Namespace Drupal\Core\Site Members Name Modifiers Type Description Settings::$instance private static property Singleton instance. Settings::$storage private property Array with the settings. Settings::get

SetSubtreesCommand::__construct

public SetSubtreesCommand::__construct($subtrees) Constructs a SetSubtreesCommand object. Parameters array $subtrees: The toolbar subtrees that will be set. File core/modules/toolbar/src/Ajax/SetSubtreesCommand.php, line 25 Class SetSubtreesCommand Defines an AJAX command that sets the toolbar subtrees. Namespace Drupal\toolbar\Ajax Code public function __construct($subtrees) { $this->subtrees = $subtrees; }

SetSubtreesCommand::$subtrees

The toolbar subtrees. Type: array File core/modules/toolbar/src/Ajax/SetSubtreesCommand.php, line 17 Class SetSubtreesCommand Defines an AJAX command that sets the toolbar subtrees. Namespace Drupal\toolbar\Ajax Code protected $subtrees;