You are here

public function FeedsFileFetcher::sourceDelete in Feeds 8.2

Overrides parent::sourceDelete().

Overrides FeedsPlugin::sourceDelete

File

lib/Drupal/feeds/Plugin/feeds/fetcher/FeedsFileFetcher.php, line 191
Home of the FeedsFileFetcher and related classes.

Class

FeedsFileFetcher
Defines a file fetcher.

Namespace

Drupal\feeds\Plugin\feeds\fetcher

Code

public function sourceDelete(FeedsSource $source) {
  $source_config = $source
    ->getConfigFor($this);
  if (isset($source_config['fid'])) {
    $this
      ->deleteFile($source_config['fid'], $source->feed_nid);
  }
}