You are here

public static function Settings::getAll in Drupal 9

Same name and namespace in other branches
  1. 8 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.

19 calls to Settings::getAll()
BlockInterestCohortTest::testDisableBlockSetting in core/tests/Drupal/KernelTests/Core/Http/BlockInterestCohortTest.php
Tests that FLoC blocking can be disabled in settings.php.
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
drupal_rewrite_settings in core/includes/install.inc
Replaces values in settings.php with values in the submitted array.
FieldableEntityDefinitionUpdateTest::setUp in core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php

... See full list

File

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

Class

Settings
Read only settings that are initialized with the class.

Namespace

Drupal\Core\Site

Code

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