function update_fetch_data

Same name and namespace in other branches
  1. 11.x core/modules/update/update.module \update_fetch_data()
  2. 10 core/modules/update/update.module \update_fetch_data()
  3. 9 core/modules/update/update.module \update_fetch_data()
  4. 8.9.x core/modules/update/update.module \update_fetch_data()
  5. 7.x modules/update/update.module \update_fetch_data()

Attempts to fetch update data after loading the necessary include file.

Deprecated

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\update\UpdateProcessor::fetchData() instead.

See also

\Drupal\update\UpdateProcessor::fetchData()

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

File

core/modules/update/update.module, line 106

Code

function update_fetch_data() : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. Use \\Drupal\\update\\UpdateProcessor::fetchData() instead. See https://www.drupal.org/node/3592959', E_USER_DEPRECATED);
  \Drupal::service('update.processor')->fetchData();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.