You are here

public function FetcherResult::getRaw in Feeds 8.3

Returns the file provided by the fetcher as a string.

Return value

string The raw content from the source as a string.

Throws

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

Overrides FetcherResultInterface::getRaw

1 method overrides FetcherResult::getRaw()
RawFetcherResult::getRaw in src/Result/RawFetcherResult.php
Returns the file provided by the fetcher as a string.

File

src/Result/FetcherResult.php, line 32

Class

FetcherResult
The default fetcher result object.

Namespace

Drupal\feeds\Result

Code

public function getRaw() {
  $this
    ->checkFile();
  return $this
    ->sanitizeRaw(file_get_contents($this->filePath));
}