You are here

public function ImporterForm::__construct in CSV Importer 8

ImporterForm class constructor.

Parameters

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_bundle_info: The entity bundle info service.

\Drupal\csv_importer\Parser\ParserInterface $parser: The parser service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\csv_importer\Plugin\ImporterManager $importer: The importer plugin manager service.

File

src/Form/ImporterForm.php, line 78

Class

ImporterForm
Provides CSV importer form.

Namespace

Drupal\csv_importer\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $entity_bundle_info, ParserInterface $parser, RendererInterface $renderer, ImporterManager $importer) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityBundleInfo = $entity_bundle_info;
  $this->parser = $parser;
  $this->renderer = $renderer;
  $this->importer = $importer;
}