You are here

public function NodeImportController::__construct in Simple Node Importer 8

Responsible for node type entity immport.

Parameters

Drupal\simple_node_importer\Services\GetServices $getServices: Constructs a Drupal\simple_node_importer\Services object.

Drupal\Core\TempStore\PrivateTempStoreFactory $sessionVariable: Constructs a Drupal\Core\TempStore\PrivateTempStoreFactory object.

Drupal\Core\Session\SessionManagerInterface $session_manager: Constructs a Drupal\Core\Session\SessionManagerInterface object.

Drupal\Core\Session\AccountInterface $current_user: Constructs a Drupal\Core\Session\AccountInterface object.

File

src/Controller/NodeImportController.php, line 41

Class

NodeImportController
Default controller for the simple_node_importer module.

Namespace

Drupal\simple_node_importer\Controller

Code

public function __construct(GetServices $getServices, PrivateTempStoreFactory $sessionVariable, SessionManagerInterface $session_manager, AccountInterface $current_user) {
  $this->services = $getServices;
  $this->sessionVariable = $sessionVariable
    ->get('simple_node_importer');
  $this->sessionManager = $session_manager;
  $this->currentUser = $current_user;
}