You are here

private static property Settings::$deprecatedSettings in Drupal 9

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Site/Settings.php \Drupal\Core\Site\Settings::deprecatedSettings

Information about all deprecated settings, keyed by legacy settings name.

Each entry should be an array that defines the following keys:

  • 'replacement': The new name for the setting.
  • 'message': The deprecation message to use for trigger_error().

Type: array

See also

self::handleDeprecations()

File

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

Class

Settings
Read only settings that are initialized with the class.

Namespace

Drupal\Core\Site

Code

private static $deprecatedSettings = [
  'sanitize_input_whitelist' => [
    'replacement' => 'sanitize_input_safe_keys',
    'message' => 'The "sanitize_input_whitelist" setting is deprecated in drupal:9.1.0 and will be removed in drupal:10.0.0. Use Drupal\\Core\\Security\\RequestSanitizer::SANITIZE_INPUT_SAFE_KEYS instead. See https://www.drupal.org/node/3163148.',
  ],
  'twig_sandbox_whitelisted_classes' => [
    'replacement' => 'twig_sandbox_allowed_classes',
    'message' => 'The "twig_sandbox_whitelisted_classes" setting is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use "twig_sandbox_allowed_classes" instead. See https://www.drupal.org/node/3162897.',
  ],
  'twig_sandbox_whitelisted_methods' => [
    'replacement' => 'twig_sandbox_allowed_methods',
    'message' => 'The "twig_sandbox_whitelisted_methods" setting is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use "twig_sandbox_allowed_methods" instead. See https://www.drupal.org/node/3162897.',
  ],
  'twig_sandbox_whitelisted_prefixes' => [
    'replacement' => 'twig_sandbox_allowed_prefixes',
    'message' => 'The "twig_sandbox_whitelisted_prefixes" setting is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use "twig_sandbox_allowed_prefixes" instead. See https://www.drupal.org/node/3162897.',
  ],
];