purge.install in Purge 8.3
Same filename and directory in other branches
Installation file for the purge module.
File
purge.installView source
<?php
/**
* @file
* Installation file for the purge module.
*/
/**
* Implements hook_requirements().
*/
function purge_requirements($phase) {
if ($phase !== 'runtime') {
return [];
}
$checks = \Drupal::service('purge.diagnostics');
return $checks
->toRequirementsArray($checks
->filterWarningAndErrors(), TRUE);
}
/**
* Implements hook_uninstall().
*/
function purge_uninstall() {
if (\Drupal::database()
->schema()
->tableExists('purge_queue')) {
\Drupal::database()
->schema()
->dropTable('purge_queue');
}
}
Functions
Name | Description |
---|---|
purge_requirements | Implements hook_requirements(). |
purge_uninstall | Implements hook_uninstall(). |