You are here

public function RawFetcherResult::__construct in Feeds 8.3

Constructs a RawFetcherResult object.

Parameters

string $raw: The raw result string.

\Drupal\Core\File\FileSystemInterface $file_system: (optional) The file system service.

Overrides FetcherResult::__construct

File

src/Result/RawFetcherResult.php, line 39

Class

RawFetcherResult
A fetcher result object that accepts a raw string.

Namespace

Drupal\feeds\Result

Code

public function __construct($raw, FileSystemInterface $file_system = NULL) {
  $this->raw = $raw;
  if (is_null($file_system)) {
    $file_system = \Drupal::service('file_system');
  }
  $this->fileSystem = $file_system;
}