function ContentExportCommand::__construct

Same name in this branch
  1. 11.x core/lib/Drupal/Core/DefaultContent/ContentExportCommand.php \Drupal\Core\DefaultContent\ContentExportCommand::__construct()
Same name and namespace in other branches
  1. main core/lib/Drupal/Core/DefaultContent/ContentExportCommand.php \Drupal\Core\DefaultContent\ContentExportCommand::__construct()
  2. main core/lib/Drupal/Core/DefaultContent/Command/ContentExportCommand.php \Drupal\Core\DefaultContent\Command\ContentExportCommand::__construct()

File

core/lib/Drupal/Core/DefaultContent/Command/ContentExportCommand.php, line 37

Class

ContentExportCommand
Exports content entities in YAML format.

Namespace

Drupal\Core\DefaultContent\Command

Code

public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected EntityTypeBundleInfoInterface $entityBundleInfo, protected Exporter $exporter, protected FileSystemInterface $fileSystem) {
  parent::__construct();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.