You are here

protected function DefaultContentManager::parseFile in Default Content 8

Parses content files

2 calls to DefaultContentManager::parseFile()
DefaultContentManager::generateEntity in src/DefaultContentManager.php
DefaultContentManager::getFilesInOrder in src/DefaultContentManager.php

File

src/DefaultContentManager.php, line 254
Contains \Drupal\defaultcontent\DefaultContentManager. @todo remove all references to linkmanager?

Class

DefaultContentManager
A service for handling import of default content. @todo throw useful exceptions

Namespace

Drupal\defaultcontent

Code

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