function _update_no_data

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

Returns a warning message when there is no data about available updates.

Deprecated

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

See also

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

File

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

Code

function _update_no_data() {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. Use \\Drupal\\update\\UpdateMessageTrait::noData() instead. See https://www.drupal.org/node/3592959', E_USER_DEPRECATED);
  $destination = \Drupal::destination()->getAsArray();
  return t('No update information available. <a href=":run_cron">Run cron</a> or <a href=":check_manually">check manually</a>.', [
    ':run_cron' => Url::fromRoute('system.run_cron', [], [
      'query' => $destination,
    ])->toString(),
    ':check_manually' => Url::fromRoute('update.manual_status', [], [
      'query' => $destination,
    ])->toString(),
  ]);
}

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