You are here

public function FeedsFileFetcherResult::getFilePath in Feeds 8.2

Overrides parent::getFilePath().

Overrides FeedsFetcherResult::getFilePath

File

lib/Drupal/feeds/FeedsFileFetcherResult.php, line 35
Home of the FeedsFileFetcher and related classes.

Class

FeedsFileFetcherResult
Definition of the import batch object created on the fetching stage by FeedsFileFetcher.

Namespace

Drupal\feeds

Code

public function getFilePath() {
  if (!file_exists($this->file_path)) {
    throw new Exception(t('File @filepath is not accessible.', array(
      '@filepath' => $this->file_path,
    )));
  }
  return $this
    ->sanitizeFile($this->file_path);
}