Commit fb6d0d7f authored by Adam G-H's avatar Adam G-H Committed by Ted Bowman
Browse files

Issue #3314137 by Wim Leers, phenaproxima, tedbow: Make Automatic Updates Drupal 10-compatible

parent 6bf619d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: 'Automatic Updates'
type: module
description: 'Automatically updates Drupal core.'
core_version_requirement: ^9.3
core_version_requirement: ^9.3 || ^10
dependencies:
  - drupal:package_manager
  - drupal:update
+6 −0
Original line number Diff line number Diff line
@@ -164,6 +164,12 @@ function automatic_updates_module_implements_alter(&$implementations, $hook) {
 * Implements hook_cron().
 */
function automatic_updates_cron() {
  // @todo Refactor this after https://www.drupal.org/project/drupal/issues/2969056
  // @todo Remove this after https://www.drupal.org/project/drupal/issues/3318964
  if (defined('MAINTENANCE_MODE') || stripos($_SERVER['PHP_SELF'], 'update.php') !== FALSE) {
    return;
  }

  /** @var \Drupal\automatic_updates\CronUpdater $updater */
  $updater = \Drupal::service('automatic_updates.cron_updater');
  $updater->handleCron();
+1 −1
Original line number Diff line number Diff line
name: 'Automatic Updates Extensions'
type: module
description: 'Allows updates to themes and modules'
core_version_requirement: ^9.3
core_version_requirement: ^9.3 || ^10
lifecycle: experimental
dependencies:
  - drupal:automatic_updates
+1 −1
Original line number Diff line number Diff line
name: 'New module'
type: module
core_version_requirement: ^9
core_version_requirement: ^9 || ^10
project: new_module
+1 −1
Original line number Diff line number Diff line
name: 'New module'
type: module
core_version_requirement: ^9
core_version_requirement: ^9 || ^10
project: new_module
Loading