You are here

public function LegalAdminTermsForm::__construct in Legal 8

Same name and namespace in other branches
  1. 2.0.x src/Form/LegalAdminTermsForm.php \Drupal\legal\Form\LegalAdminTermsForm::__construct()

LegalAdminTermsForm constructor.

Overrides ConfigFormBase::__construct

File

src/Form/LegalAdminTermsForm.php, line 46

Class

LegalAdminTermsForm
Settings form for administering content of Terms & Conditions.

Namespace

Drupal\legal\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager, DateFormatterInterface $date_formatter) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->languageManager = $language_manager;
  $this->dateFormatter = $date_formatter;
}