function Settings::getAll

Same name in other branches
  1. 9 core/lib/Drupal/Core/Site/Settings.php \Drupal\Core\Site\Settings::getAll()
  2. 10 core/lib/Drupal/Core/Site/Settings.php \Drupal\Core\Site\Settings::getAll()
  3. 11.x core/lib/Drupal/Core/Site/Settings.php \Drupal\Core\Site\Settings::getAll()

Returns all the settings. This is only used for testing purposes.

Return value

array All the settings.

26 calls to Settings::getAll()
ConfigEntityUpdaterTest::testUpdate in core/tests/Drupal/KernelTests/Core/Config/Entity/ConfigEntityUpdaterTest.php
@covers ::update
ConfigEntityUpdaterTest::testUpdateDefaultCallback in core/tests/Drupal/KernelTests/Core/Config/Entity/ConfigEntityUpdaterTest.php
@covers ::update
DistributionProfileExistingSettingsTest::testInstalled in core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php
Confirms that the installation succeeded.
DrupalKernel::getInstallProfile in core/lib/Drupal/Core/DrupalKernel.php
Gets the active install profile.
drupal_rewrite_settings in core/includes/install.inc
Replaces values in settings.php with values in the submitted array.

... See full list

File

core/lib/Drupal/Core/Site/Settings.php, line 99

Class

Settings
Read only settings that are initialized with the class.

Namespace

Drupal\Core\Site

Code

public static function getAll() {
    return self::$instance->storage;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.