You are here

public function SettingsForm::__construct in Security Review 8

Constructs a SettingsForm.

Parameters

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

\Drupal\security_review\Checklist $checklist: The security_review.checklist service.

\Drupal\security_review\Security $security: The security_review.security service.

\Drupal\security_review\SecurityReview $security_review: The security_review service.

\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: The date.formatter service.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 62

Class

SettingsForm
Settings page for Security Review.

Namespace

Drupal\security_review\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, Checklist $checklist, Security $security, SecurityReview $security_review, DateFormatterInterface $dateFormatter) {
  parent::__construct($config_factory);
  $this->checklist = $checklist;
  $this->security = $security;
  $this->securityReview = $security_review;
  $this->dateFormatter = $dateFormatter;
}