You are here

public function ExportCommand::__construct in Commerce Demo 8

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

Constructs a new ExportCommand object.

Parameters

\Drupal\commerce_demo\ContentExporter $content_exporter: The content exporter.

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

File

src/Command/ExportCommand.php, line 69

Class

ExportCommand
Class ExportCommand.

Namespace

Drupal\commerce_demo\Command

Code

public function __construct(ContentExporter $content_exporter, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
  parent::__construct();
  $this->contentExporter = $content_exporter;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
}