You are here

public function HstsConfigForm::__construct in HTTP Strict Transport Security 8

Constructs a HstsConfigForm object.

Parameters

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

\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter service.

Overrides ConfigFormBase::__construct

File

src/Form/HstsConfigForm.php, line 36
Contains \Drupal\hsts\Form\HstsConfigForm.

Class

HstsConfigForm
Implements a Hsts Config form.

Namespace

Drupal\hsts\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, DateFormatter $date_formatter) {
  parent::__construct($config_factory);
  $this->dateFormatter = $date_formatter;
}