You are here

public function EntityController::__construct in Convert Bundles 8

Constructs a \Drupal\convert_bundles\Controller\EntityController.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: Temp storage.

\Drupal\Core\Session\SessionManagerInterface $session_manager: Session.

\Drupal\Core\Session\AccountInterface $current_user: User.

File

src/Controller/EntityController.php, line 51

Class

EntityController
Controller for convert bundles entity.

Namespace

Drupal\convert_bundles\Controller

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, SessionManagerInterface $session_manager, AccountInterface $current_user) {
  $this->tempStoreFactory = $temp_store_factory;
  $this->sessionManager = $session_manager;
  $this->currentUser = $current_user
    ->id();
}