The 'system.css_js_query_string' state is deprecated in drupal:10.2.0.

Created on 5 March 2024, 9 months ago
Updated 20 April 2024, 7 months ago

Problem/Motivation

With Drupal 10.2.x following deprecation notices found in logs when running webform related tests.

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 .

Steps to reproduce

In webform/includes/webform.libraries.inc state called directly, needs converting to use the service:

/**
 * Implements hook_library_info_build().
 */
function webform_library_info_build() {
  $base_path = base_path();
  $default_query_string = \Drupal::state()->get('system.css_js_query_string') ?: '0';

Proposed resolution

Fix it according to https://www.drupal.org/node/3358337

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

6.2

Component

Code

Created by

🇫🇮Finland mitrpaka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024