You are here

public function MultiStepFormBase::__construct in Activity 8

Constructs a \Drupal\activity\Form\MultiStepFormBase.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Session\SessionManagerInterface $session_manager: The session manager.

\Drupal\user\PrivateTempStoreFactory $temp_store_factory: The temp store factory.

2 calls to MultiStepFormBase::__construct()
ConfigureActivityForm::__construct in src/Form/ConfigureActivityForm.php
ConfigureActivityForm constructor.
CreateActivityForm::__construct in src/Form/CreateActivityForm.php
Constructs an CreateActivityForm.
2 methods override MultiStepFormBase::__construct()
ConfigureActivityForm::__construct in src/Form/ConfigureActivityForm.php
ConfigureActivityForm constructor.
CreateActivityForm::__construct in src/Form/CreateActivityForm.php
Constructs an CreateActivityForm.

File

src/Form/MultiStepFormBase.php, line 55

Class

MultiStepFormBase
Multi step form.

Namespace

Drupal\activity\Form

Code

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