You are here

public function Importer::__construct in Default Content Deploy 8

Constructs the default content deploy manager.

Parameters

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

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

\Drupal\hal\LinkManager\LinkManagerInterface $link_manager: The link manager service.

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

\Drupal\default_content_deploy\DeployManager $deploy_manager: Deploy manager.

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

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The Entity repository manager.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache data.

File

src/Importer.php, line 159

Class

Importer
A service for handling import of default content.

Namespace

Drupal\default_content_deploy

Code

public function __construct(Serializer $serializer, EntityTypeManagerInterface $entity_type_manager, LinkManagerInterface $link_manager, AccountSwitcherInterface $account_switcher, DeployManager $deploy_manager, ModuleHandlerInterface $module_handler, EntityRepositoryInterface $entity_repository, CacheBackendInterface $cache, Exporter $exporter) {
  $this->serializer = $serializer;
  $this->entityTypeManager = $entity_type_manager;
  $this->linkManager = $link_manager;
  $this->accountSwitcher = $account_switcher;
  $this->deployManager = $deploy_manager;
  $this->moduleHandler = $module_handler;
  $this->entityRepository = $entity_repository;
  $this->cache = $cache;
  $this->exporter = $exporter;
}