You are here

public function FetcherResult::getFilePath in Feeds 8.3

Returns the path to the file containing the file provided by the fetcher.

When it comes to preference and efficiency, this method should be used whenever possible by parsers so that they do not have to load the entire file into memory.

Return value

string A path to a file containing the raw content of a feed.

Throws

\RuntimeException Thrown if an unexpected problem occurred usually regarding file handling.

Overrides FetcherResultInterface::getFilePath

1 method overrides FetcherResult::getFilePath()
RawFetcherResult::getFilePath in src/Result/RawFetcherResult.php
Returns the path to the file containing the file provided by the fetcher.

File

src/Result/FetcherResult.php, line 40

Class

FetcherResult
The default fetcher result object.

Namespace

Drupal\feeds\Result

Code

public function getFilePath() {
  $this
    ->checkFile();
  return $this
    ->sanitizeFile();
}