Commit 300d00ab authored by xjm's avatar xjm

Issue #2920010 by shashikant_chauhan, tedbow, dinarcon, kwhite, xjm: Add...

Issue #2920010 by shashikant_chauhan, tedbow, dinarcon, kwhite, xjm: Add Change record to @deprecated for AssetCollectionOptimizerInterface::getAll() and ::deleteAll()
parent f03cb20e
...@@ -422,6 +422,8 @@ function base_path() { ...@@ -422,6 +422,8 @@ function base_path() {
* *
* @deprecated in Drupal 8.x, will be removed before Drupal 9.0. * @deprecated in Drupal 8.x, will be removed before Drupal 9.0.
* Use \Drupal\Core\Asset\AssetCollectionOptimizerInterface::deleteAll(). * Use \Drupal\Core\Asset\AssetCollectionOptimizerInterface::deleteAll().
*
* @see https://www.drupal.org/node/2317841
*/ */
function drupal_clear_css_cache() { function drupal_clear_css_cache() {
\Drupal::service('asset.css.collection_optimizer')->deleteAll(); \Drupal::service('asset.css.collection_optimizer')->deleteAll();
...@@ -739,6 +741,8 @@ function drupal_attach_tabledrag(&$element, array $options) { ...@@ -739,6 +741,8 @@ function drupal_attach_tabledrag(&$element, array $options) {
* *
* @deprecated in Drupal 8.x, will be removed before Drupal 9.0. * @deprecated in Drupal 8.x, will be removed before Drupal 9.0.
* Use \Drupal\Core\Asset\AssetCollectionOptimizerInterface::deleteAll(). * Use \Drupal\Core\Asset\AssetCollectionOptimizerInterface::deleteAll().
*
* @see https://www.drupal.org/node/2317841
*/ */
function drupal_clear_js_cache() { function drupal_clear_js_cache() {
\Drupal::service('asset.js.collection_optimizer')->deleteAll(); \Drupal::service('asset.js.collection_optimizer')->deleteAll();
......
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