You are here

public function ImportCommand::__construct in Tome 8

Constructs an ImportCommand instance.

Parameters

\Drupal\tome_sync\ImporterInterface $importer: The importer.

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

\Drupal\Core\State\StateInterface $state: The state system.

2 calls to ImportCommand::__construct()
DeleteContentCommand::__construct in modules/tome_sync/src/Commands/DeleteContentCommand.php
Constructs an DeleteContentCommand instance.
ImportPartialCommand::__construct in modules/tome_sync/src/Commands/ImportPartialCommand.php
Constructs an ImportPartialCommand instance.
2 methods override ImportCommand::__construct()
DeleteContentCommand::__construct in modules/tome_sync/src/Commands/DeleteContentCommand.php
Constructs an DeleteContentCommand instance.
ImportPartialCommand::__construct in modules/tome_sync/src/Commands/ImportPartialCommand.php
Constructs an ImportPartialCommand instance.

File

modules/tome_sync/src/Commands/ImportCommand.php, line 68

Class

ImportCommand
Contains the tome:import command.

Namespace

Drupal\tome_sync\Commands

Code

public function __construct(ImporterInterface $importer, EntityTypeManagerInterface $entity_type_manager, StateInterface $state) {
  parent::__construct();
  $this->importer = $importer;
  $this->entityTypeManager = $entity_type_manager;
  $this->state = $state;
}