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

Breadcrumb

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

function UpdateDataSubscriber::getSubscribedEvents

Overrides EventSubscriberInterface::getSubscribedEvents

File

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

Class

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

Namespace

Drupal\package_manager\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    return [
        PostApplyEvent::class => [
            'clearData',
            1000,
        ],
    ];
}
RSS feed
Powered by Drupal