You are here

public function Exporter::__construct in Default Content for D8 8

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

Constructs the default content manager.

Parameters

\Symfony\Component\Serializer\Serializer $serializer: The serializer service.

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

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

\Drupal\hal\LinkManager\LinkManagerInterface $link_manager: The link manager 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.

string $link_domain: Defines relation domain URI for entity links.

\Drupal\Core\Session\AccountSwitcherInterface $account_switcher: The account switcher.

\Drupal\Core\File\FileSystemInterface $file_system: The filesystem service.

File

src/Exporter.php, line 119

Class

Exporter
A service for handling import of default content.

Namespace

Drupal\default_content

Code

public function __construct(Serializer $serializer, EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository, LinkManagerInterface $link_manager, EventDispatcherInterface $event_dispatcher, ModuleHandlerInterface $module_handler, InfoParserInterface $info_parser, $link_domain, AccountSwitcherInterface $account_switcher, FileSystemInterface $file_system) {
  $this->serializer = $serializer;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityRepository = $entity_repository;
  $this->linkManager = $link_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->moduleHandler = $module_handler;
  $this->infoParser = $info_parser;
  $this->linkDomain = $link_domain;
  $this->accountSwitcher = $account_switcher;
  $this->fileSystem = $file_system;
}