Unverified Commit 038c7dd5 authored by alexpott's avatar alexpott
Browse files

Issue #3256518 by Spokje: Remove drupal_js_defaults() in D10 instead of D11

parent 3310654e
......@@ -201,13 +201,13 @@ function base_path() {
* @param $data
* (optional) The default data parameter for the JavaScript asset array.
*
* @deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. No direct
* @deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. No direct
* replacement is provided.
*
* @see https://www.drupal.org/node/3197679
*/
function drupal_js_defaults($data = NULL) {
@trigger_error('drupal_js_defaults() is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. No direct replacement is provided. See https://www.drupal.org/node/3197679', E_USER_DEPRECATED);
@trigger_error('drupal_js_defaults() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3197679', E_USER_DEPRECATED);
return [
'type' => 'file',
'group' => JS_DEFAULT,
......
......@@ -493,7 +493,7 @@ public function testAddJsFileWithQueryString() {
* @group legacy
*/
public function testDeprecatedDrupalJsDefaults() {
$this->expectDeprecation('drupal_js_defaults() is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. No direct replacement is provided. See https://www.drupal.org/node/3197679');
$this->expectDeprecation('drupal_js_defaults() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3197679');
$this->assertIsArray(drupal_js_defaults());
}
......
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