update.post_update.php

Same filename and directory in other branches
  1. 9 core/modules/update/update.post_update.php
  2. 11.x core/modules/update/update.post_update.php

Post update functions for Update Manager.

File

core/modules/update/update.post_update.php

View source
<?php


/**
 * @file
 * Post update functions for Update Manager.
 */


/**
 * Implements hook_removed_post_updates().
 */
function update_remove_post_updates() {
  return [
    'update_post_update_add_view_update_notifications_permission' => '10.0.0',
  ];
}

/**
 * Updates update.settings:fetch.url config if it's still at the default.
 */
function update_post_update_set_blank_fetch_url_to_null() {
  $update_settings = \Drupal::configFactory()->getEditable('update.settings');
  if ($update_settings->get('fetch.url') === '') {
    $update_settings->set('fetch.url', NULL)
      ->save(TRUE);
  }
}

Functions

Title Deprecated Summary
update_post_update_set_blank_fetch_url_to_null Updates update.settings:fetch.url config if it's still at the default.
update_remove_post_updates Implements hook_removed_post_updates().

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