You are here

public function Exporter::__construct in Default Content Deploy 8

Exporter constructor.

Parameters

\Drupal\Core\Database\Connection $database: DB connection.

\Drupal\default_content_deploy\DeployManager $deploy_manager: DCD Manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity Type Manager.

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

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

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

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

File

src/Exporter.php, line 148

Class

Exporter
A service for handling export of default content.

Namespace

Drupal\default_content_deploy

Code

public function __construct(Connection $database, DeployManager $deploy_manager, EntityTypeManagerInterface $entityTypeManager, Serializer $serializer, AccountSwitcherInterface $account_switcher, FileSystemInterface $file_system, LinkManagerInterface $link_manager) {
  $this->database = $database;
  $this->entityTypeManager = $entityTypeManager;
  $this->serializer = $serializer;
  $this->accountSwitcher = $account_switcher;
  $this->deployManager = $deploy_manager;
  $this->fileSystem = $file_system;
  $this->linkManager = $link_manager;
}