You are here

public function OAuthKeyForm::__construct in Lightning API 8

Same name and namespace in other branches
  1. 8.4 src/Form/OAuthKeyForm.php \Drupal\lightning_api\Form\OAuthKeyForm::__construct()
  2. 8.2 src/Form/OAuthKeyForm.php \Drupal\lightning_api\Form\OAuthKeyForm::__construct()
  3. 8.3 src/Form/OAuthKeyForm.php \Drupal\lightning_api\Form\OAuthKeyForm::__construct()

OAuthKeyForm constructor.

Parameters

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

\Drupal\lightning_api\OAuthKey $key: The OAuth keys service.

TranslationInterface $translation: The string translation service.

Overrides ConfigFormBase::__construct

File

src/Form/OAuthKeyForm.php, line 32

Class

OAuthKeyForm

Namespace

Drupal\lightning_api\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, OAuthKey $key, TranslationInterface $translation) {
  parent::__construct($config_factory);
  $this->key = $key;
  $this
    ->setStringTranslation($translation);
}