forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
22 lines
465 B
PHP
22 lines
465 B
PHP
<?php
|
|
|
|
/**
|
|
* @file
|
|
* Install, update and uninstall functions for the Warmer module.
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_uninstall().
|
|
*/
|
|
function warmer_uninstall() {
|
|
$config = \Drupal::configFactory()->get('warmer.settings');
|
|
/** @var array $warmers */
|
|
$warmers = $config->get('warmers');
|
|
foreach ($warmers as $warmer) {
|
|
\Drupal::state()->delete('previous_enqueue_time:' . $warmer['id']);
|
|
}
|
|
|
|
$queue = \Drupal::queue('warmer');
|
|
$queue->deleteQueue();
|
|
}
|