Changes for core/lib/Drupal/Core/Site/Settings.php: 14 added lines, 1 removed line.
Original line number
Diff line number
Diff line
@@ -37,7 +37,20 @@ final class Settings {
*
* @see self::handleDeprecations()
*/
privatestatic$deprecatedSettings=[];
privatestatic$deprecatedSettings=[
'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.',
Changes for core/tests/Drupal/Tests/Core/Site/SettingsTest.php: 27 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -272,4 +272,31 @@ public function providerTestFakeDeprecatedSettings(): array {
];
}
/**
* Tests legacy twig_sandbox_* settings.
*
* @runInSeparateProcess
*
* @group legacy
*
* @expectedDeprecation 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.
* @expectedDeprecation 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.
* @expectedDeprecation 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.