You are here

public function CleanerSettingsForm::__construct in Cleaner 8.2

Same name and namespace in other branches
  1. 8 src/Form/CleanerSettingsForm.php \Drupal\cleaner\Form\CleanerSettingsForm::__construct()

FirstSettingsForm constructor.

Parameters

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

\Drupal\Core\Database\Connection $database: Database connection.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: Theme manager.

\Drupal\Component\Datetime\TimeInterface $time: Date time service.

Overrides ConfigFormBase::__construct

File

src/Form/CleanerSettingsForm.php, line 70

Class

CleanerSettingsForm
Class CleanerSettingsForm.

Namespace

Drupal\cleaner\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, Connection $database, ThemeManagerInterface $theme_manager, TimeInterface $time) {
  parent::__construct($config_factory);
  $this->database = $database;
  $this->themeManager = $theme_manager;
  $this->dateTime = $time;
}