Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_drupal_flush_css_js() is deprecated and replaced by \Drupal::service('asset.query_string')->reset() #588

Open
github-actions bot opened this issue Jul 19, 2023 · 0 comments
Labels
10.2.x drupal-rector-covered This issue is covered in rector phpstan-deprecations Will be detected with PHPStan's deprecation rules

Comments

@github-actions
Copy link

https://www.drupal.org/node/3358337

Introduced in branch/version: 10.2.x / 10.2.0

_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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.2.x drupal-rector-covered This issue is covered in rector phpstan-deprecations Will be detected with PHPStan's deprecation rules
Projects
None yet
Development

No branches or pull requests

1 participant