diff --git a/core/includes/common.inc b/core/includes/common.inc index 3d9bbb9bce..cc9677e750 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -9,13 +9,13 @@ */ use Drupal\Component\Gettext\PoItem; -use Drupal\Component\Serialization\Json; use Drupal\Component\Utility\Bytes; use Drupal\Component\Utility\Environment; use Drupal\Component\Utility\Html; use Drupal\Component\Utility\SortArray; use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Cache\Cache; +use Drupal\Core\Form\FormHelper; use Drupal\Core\Render\Element; use Drupal\Core\Render\Element\Link; use Drupal\Core\Render\HtmlResponseAttachmentsProcessor; @@ -588,13 +588,14 @@ function drupal_js_defaults($data = NULL) { * @param $elements * A renderable array element having a #states property as described above. * - * @deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use + * @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use * \Drupal\Core\Form\FormHelper::processStates() instead. * * @see https://www.drupal.org/node/3000069 + * @see \Drupal\Core\Form\FormHelper::processStates() */ function drupal_process_states(&$elements) { - @trigger_error('drupal_process_states() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Form\FormHelper::processStates() instead. See https://www.drupal.org/node/3000069', E_USER_DEPRECATED); + @trigger_error('drupal_process_states() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Form\FormHelper::processStates() instead. See https://www.drupal.org/node/3000069', E_USER_DEPRECATED); FormHelper::processStates($elements); } diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php index be6522a445..6f9ab71cc2 100644 --- a/core/lib/Drupal/Core/Render/Renderer.php +++ b/core/lib/Drupal/Core/Render/Renderer.php @@ -9,6 +9,7 @@ use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\CacheableMetadata; use Drupal\Core\Controller\ControllerResolverInterface; +use Drupal\Core\Form\FormHelper; use Drupal\Core\Render\Element\RenderCallbackInterface; use Drupal\Core\Security\TrustedCallbackInterface; use Drupal\Core\Security\DoTrustedCallbackTrait; diff --git a/core/tests/Drupal/KernelTests/Core/Render/RendererLegacyTest.php b/core/tests/Drupal/KernelTests/Core/Render/RendererLegacyTest.php index a94fb95b65..9ea5d66c40 100644 --- a/core/tests/Drupal/KernelTests/Core/Render/RendererLegacyTest.php +++ b/core/tests/Drupal/KernelTests/Core/Render/RendererLegacyTest.php @@ -43,7 +43,7 @@ public function providerAttributes() { * * @dataProvider providerElements * - * @expectedDeprecation drupal_process_states() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Form\FormHelper::processStates() instead. See https://www.drupal.org/node/3000069 + * @expectedDeprecation drupal_process_states() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Form\FormHelper::processStates() instead. See https://www.drupal.org/node/3000069 */ public function testDrupalProcessStates($elements) { // Clone elements because processing changes array.