Scan for missing files and remove the associated entries in the database.
File
-
src/
Form/ OperationsForm.php, line 395
Class
- OperationsForm
- Configure advagg settings for this site.
Namespace
Drupal\advagg\FormCode
public function clearMissingFiles() {
$deleted = $this->advaggFiles
->clearMissingFiles();
$this->advaggAggregates
->clearMissingFiles();
if (empty($deleted)) {
drupal_set_message($this->t('No missing files found or they could not be safely cleared out of the database.'));
}
else {
drupal_set_message($this->t('Some missing files were found and could be safely cleared out of the database. <pre> @raw </pre>', [
'@raw' => print_r($deleted, TRUE),
]));
}
}