public static function Settings::getSingleton

Returns the settings instance.

A singleton is used because this class is used before the container is available.

Return value

\Drupal\Component\Utility\Settings

2 calls to Settings::getSingleton()
BootstrapConfigStorageFactory::get in drupal/core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php
Returns a configuration storage implementation.
settings in drupal/core/includes/bootstrap.inc
Returns a setting.

File

drupal/core/lib/Drupal/Component/Utility/Settings.php, line 37
Contains \Drupal\Component\Utility\Settings.

Class

Settings
Read only settings that are initialized with the class.

Namespace

Drupal\Component\Utility

Code

public static function getSingleton() {
  return self::$instance;
}