You are here

protected function Importer::parseFile in Default Content for D8 2.0.x

Same name and namespace in other branches
  1. 8 src/Importer.php \Drupal\default_content\Importer::parseFile()

Parses content files.

Parameters

object $file: The scanned file.

Return value

string Contents of the file.

1 call to Importer::parseFile()
Importer::importContent in src/Importer.php
Imports default content from a given module.

File

src/Importer.php, line 270

Class

Importer
A service for handling import of default content.

Namespace

Drupal\default_content

Code

protected function parseFile($file) {
  return file_get_contents($file->uri);
}