You are here

public function ContentImporter::__construct in Commerce Demo 8

Same name and namespace in other branches
  1. 8.2 src/ContentImporter.php \Drupal\commerce_demo\ContentImporter::__construct()

Constructs a new ContentImporter object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

File

src/ContentImporter.php, line 56

Class

ContentImporter
Defines the content importer.

Namespace

Drupal\commerce_demo

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, FileSystemInterface $file_system) {
  $this->entityTypeManager = $entityTypeManager;
  $this->fileSystem = $file_system;
  $this->contentPath = realpath(__DIR__ . '/../content');
}