diff --git a/package_manager/package_manager.module b/package_manager/package_manager.module index 3ecf9559a5db95e9a12e58da5b1e01ef745d9f2d..d7973bc141acc514a6699106208e28647daf9a20 100644 --- a/package_manager/package_manager.module +++ b/package_manager/package_manager.module @@ -120,5 +120,5 @@ function package_manager_help($route_name, RouteMatchInterface $route_match) { * Implements hook_cron(). */ function package_manager_cron(): void { - \Drupal::service(Cleaner::class)->hookCron(); + \Drupal::service(Cleaner::class)->deleteDirectories(); } diff --git a/package_manager/src/Cleaner.php b/package_manager/src/Cleaner.php index b0844c8f66bc5bf2bbf70c2d006997276a99652e..ce12df9da6a2c63063a5ee2b67700c02b205d439 100644 --- a/package_manager/src/Cleaner.php +++ b/package_manager/src/Cleaner.php @@ -50,7 +50,7 @@ final class Cleaner implements EventSubscriberInterface { /** * Deletes defunct stage directories during cron runs. */ - public function hookCron(): void { + public function deleteDirectories(): void { $directories = $this->state->get(static::STATE_KEY, []); foreach (array_splice($directories, 0, 3) as $dir) {