You are here

public function CustomDataForm::__construct in Shibboleth Authentication 8

CustomDataForm constructor.

Parameters

\Drupal\shib_auth\Login\ShibSessionVars $shib_session:

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory:

\Drupal\Core\Session\SessionManagerInterface $session_manager:

\Drupal\Core\Session\AccountInterface $current_user:

File

src/Form/CustomDataForm.php, line 59

Class

CustomDataForm
Class CustomEmailForm.

Namespace

Drupal\shib_auth\Form

Code

public function __construct(ShibSessionVars $shib_session, PrivateTempStoreFactory $temp_store_factory, SessionManagerInterface $session_manager, AccountInterface $current_user) {
  $this->shib_session = $shib_session;
  $this->temp_store_factory = $temp_store_factory;
  $this->session_manager = $session_manager;
  $this->current_user = $current_user;
  $this->custom_data_store = $this->temp_store_factory
    ->get('shib_auth');
}