You are here

public function UserKeyAuthForm::__construct in Key auth 8

Constructs a new UserKeyAuthForm.

Parameters

\Drupal\key_auth\KeyAuthInterface $key_auth: The key authentication service.

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory service.

File

src/Form/UserKeyAuthForm.php, line 44

Class

UserKeyAuthForm
Class UserKeyAuthForm.

Namespace

Drupal\key_auth\Form

Code

public function __construct(KeyAuthInterface $key_auth, ConfigFactory $config_factory) {
  $this->keyAuth = $key_auth;
  $this->config = $config_factory
    ->get('key_auth.settings');
}