Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UpdateDataSubscriber.php

function UpdateDataSubscriber::clearData

Clears stale update data.

This will always run after any stage directory changes are applied to the active directory, since it's likely that core and/or multiple extensions have been added, removed, or updated.

File

core/modules/package_manager/src/EventSubscriber/UpdateDataSubscriber.php, line 31

Class

UpdateDataSubscriber
Clears stale update data once staged changes have been applied.

Namespace

Drupal\package_manager\EventSubscriber

Code

public function clearData() : void {
    $this->updateManager
        ->refreshUpdateData();
    update_storage_clear();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal