public function OAuthKeyForm::__construct in Lightning API 8
Same name and namespace in other branches
- 8.4 src/Form/OAuthKeyForm.php \Drupal\lightning_api\Form\OAuthKeyForm::__construct()
- 8.2 src/Form/OAuthKeyForm.php \Drupal\lightning_api\Form\OAuthKeyForm::__construct()
- 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
Namespace
Drupal\lightning_api\FormCode
public function __construct(ConfigFactoryInterface $config_factory, OAuthKey $key, TranslationInterface $translation) {
parent::__construct($config_factory);
$this->key = $key;
$this
->setStringTranslation($translation);
}