You are here

public function Exporter::__construct in Default Content for D8 2.0.x

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

Constructs the default content manager.

Parameters

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

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Extension\InfoParserInterface $info_parser: The info file parser.

\Drupal\default_content\ContentFileStorageInterface $content_file_storage: The content file storage service.

\Drupal\default_content\Normalizer\ContentEntityNormalizerInterface $content_entity_normaler: The content entity normalizer.

File

src/Exporter.php, line 91

Class

Exporter
A service for handling import of default content.

Namespace

Drupal\default_content

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository, EventDispatcherInterface $event_dispatcher, ModuleHandlerInterface $module_handler, InfoParserInterface $info_parser, ContentFileStorageInterface $content_file_storage, ContentEntityNormalizerInterface $content_entity_normaler) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityRepository = $entity_repository;
  $this->eventDispatcher = $event_dispatcher;
  $this->moduleHandler = $module_handler;
  $this->infoParser = $info_parser;
  $this->contentFileStorage = $content_file_storage;
  $this->contentEntityNormalizer = $content_entity_normaler;
}