Commit 398885e1 authored by catch's avatar catch

Issue #2566619 by claudiu.cristea, marvin_B8, andypost, alvar0hurtad0, Mile23,...

Issue #2566619 by claudiu.cristea, marvin_B8, andypost, alvar0hurtad0, Mile23, joshi.rohit100, joelpittet, dawehner, catch: Deprecate drupal_http_header_attributes()
parent 213b2a58
......@@ -365,7 +365,7 @@ function date_iso8601($date) {
* @see https://www.drupal.org/node/3000051
*/
function drupal_http_header_attributes(array $attributes = []) {
@trigger_error("drupal_http_header_attributes() is deprecated nn Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::formatHttpHeaderAttributes() instead. See https://www.drupal.org/node/3000051", E_USER_DEPRECATED);
@trigger_error("drupal_http_header_attributes() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::formatHttpHeaderAttributes() instead. See https://www.drupal.org/node/3000051", E_USER_DEPRECATED);
return HtmlResponseAttachmentsProcessor::formatHttpHeaderAttributes($attributes);
}
......
......@@ -17,7 +17,7 @@ class RendererLegacyTest extends KernelTestBase {
*
* @dataProvider providerAttributes
*
* @expectedDeprecation drupal_http_header_attributes() is deprecated nn Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::formatHttpHeaderAttributes() instead. See https://www.drupal.org/node/3000051
* @expectedDeprecation drupal_http_header_attributes() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::formatHttpHeaderAttributes() instead. See https://www.drupal.org/node/3000051
*/
public function testHeaderAttributes($expected, $attributes) {
$this->assertSame($expected, drupal_http_header_attributes($attributes));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment