By kim.pepper on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.2.x
Introduced in version:
10.2.0
Issue links:
Description:
_drupal_flush_css_js() is deprecated and replaced by the 'asset.query_string' service which provides \Drupal\Core\Asset\AssetQueryStringInterface::reset()
Before
_drupal_flush_css_js();
After
<?php
\Drupal::service('asset.query_string')->reset();
?>
Or use dependency injection and call \Drupal\Core\Asset\AssetQueryStringInterface::reset()
Impacts:
Module developers