You are here

public function NoReferrerSettingsForm::__construct in No Referrer 8

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

Overrides ConfigFormBase::__construct

File

src/Form/NoReferrerSettingsForm.php, line 42

Class

NoReferrerSettingsForm
Implements a noreferrer Config form.

Namespace

Drupal\noreferrer\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, PrivateKey $private_key, FileSystemInterface $file_system, $file_url_generator = NULL) {
  parent::__construct($config_factory);
  $this->privateKey = $private_key;
  $this->fileSystem = $file_system;
  $this->fileUrlGenerator = $file_url_generator;
}