diff --git a/core/lib/Drupal/Core/Render/Element/HtmlTag.php b/core/lib/Drupal/Core/Render/Element/HtmlTag.php index 12c0edfa62..51f53ce129 100644 --- a/core/lib/Drupal/Core/Render/Element/HtmlTag.php +++ b/core/lib/Drupal/Core/Render/Element/HtmlTag.php @@ -112,6 +112,9 @@ public static function preRenderHtmlTag($element) { /** * Pre-render callback: Renders #browsers into #prefix and #suffix. * + * @deprecated is deprecated in drupal:8.8.1 and is removed from drupal:9.0.0. + * @see https://www.drupal.org/project/drupal/issues/3095113 + * * @param array $element * A render array with a '#browsers' property. The '#browsers' property can * contain any or all of the following keys: @@ -150,6 +153,8 @@ public static function preRenderConditionalComments($element) { return $element; } + @trigger_error('Support for IE Conditional Comments is deprecated in drupal:8.8.1 and is removed from drupal:9.0.0. See https://www.drupal.org/project/drupal/issues/3095113', E_USER_DEPRECATED); + // Determine the conditional comment expression for Internet Explorer to // evaluate. if ($browsers['IE'] === TRUE) { diff --git a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php index 1290a99321..576d89e2f8 100644 --- a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php +++ b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php @@ -146,6 +146,7 @@ public static function getSkippedDeprecations() { 'The "core/classList" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the the native browser implementation instead. See https://www.drupal.org/node/3089511', 'The "core/jquery.ui.datepicker" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3081864', 'The "locale/drupal.locale.datepicker" asset library is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. See https://www.drupal.org/node/3081864', + 'Support for IE Conditional Comments is deprecated in drupal:8.8.1 and is removed from drupal:9.0.0. See https://www.drupal.org/project/drupal/issues/3095113', ]; }