protected function UploadFetcherFeedForm::deleteFile in Feeds 8.3
Deletes a file.
Parameters
int $file_id: The file id.
string $uuid: The file UUID associated with this file.
See also
1 call to UploadFetcherFeedForm::deleteFile()
- UploadFetcherFeedForm::submitConfigurationForm in src/
Feeds/ Fetcher/ Form/ UploadFetcherFeedForm.php - Form submission handler.
File
- src/
Feeds/ Fetcher/ Form/ UploadFetcherFeedForm.php, line 127
Class
- UploadFetcherFeedForm
- Provides a form on the feed edit page for the UploadFetcher.
Namespace
Drupal\feeds\Feeds\Fetcher\FormCode
protected function deleteFile($file_id, $uuid) {
if ($file = $this->fileStorage
->load($file_id)) {
$this->fileUsage
->delete($file, 'feeds', $this->plugin
->pluginType(), $uuid);
}
}