State::$deprecatedState
Same name in other branches
- 11.x core/lib/Drupal/Core/State/State.php \Drupal\Core\State\State::deprecatedState
Information about all deprecated state, keyed by legacy state key.
Each entry should be an array that defines the following keys:
- 'replacement': The new name for the state.
- 'message': The deprecation message to use for trigger_error().
Type: array
File
-
core/
lib/ Drupal/ Core/ State/ State.php, line 26
Class
- State
- Provides the state system using a key value store.
Namespace
Drupal\Core\StateCode
private static array $deprecatedState = [
'system.css_js_query_string' => [
'replacement' => AssetQueryString::STATE_KEY,
'message' => 'The \'system.css_js_query_string\' state is deprecated in drupal:10.2.0. Use \\Drupal\\Core\\Asset\\AssetQueryStringInterface::get() and ::reset() instead. See https://www.drupal.org/node/3358337.',
],
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.