public function ExportCommand::__construct in Commerce Demo 8.2
Same name and namespace in other branches
- 8 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 68
Class
- ExportCommand
- Provides a command for exporting content entities.
Namespace
Drupal\commerce_demo\CommandCode
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;
}