Issue #2384035 by arpitr, mikemiles86, lokapujya: Remove deprecated function _update_refresh and its usage
parent
814d160178
commit
03d50d2489
|
@ -17,18 +17,6 @@ function _update_fetch_data() {
|
|||
\Drupal::service('update.processor')->fetchData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears out all the available update data and initiates re-fetching.
|
||||
*
|
||||
* @see \Drupal\update\UpdateManager::refreshUpdateData()
|
||||
*
|
||||
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
|
||||
* Use \Drupal::service('update.manager')->refreshUpdateData().
|
||||
*/
|
||||
function _update_refresh() {
|
||||
\Drupal::service('update.manager')->refreshUpdateData();
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs any notifications that should be done once cron fetches new data.
|
||||
*
|
||||
|
|
|
@ -388,12 +388,9 @@ function update_create_fetch_task($project) {
|
|||
|
||||
/**
|
||||
* Refreshes the release data after loading the necessary include file.
|
||||
*
|
||||
* @see _update_refresh()
|
||||
*/
|
||||
function update_refresh() {
|
||||
module_load_include('inc', 'update', 'update.fetch');
|
||||
_update_refresh();
|
||||
\Drupal::service('update.manager')->refreshUpdateData();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue