You are here

public function HijirSettingsForm::__construct in Hijri 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Form/HijirSettingsForm.php \Drupal\hijri\Form\HijirSettingsForm::__construct()
  2. 1.0.x src/Form/HijirSettingsForm.php \Drupal\hijri\Form\HijirSettingsForm::__construct()

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

Overrides ConfigFormBase::__construct

File

src/Form/HijirSettingsForm.php, line 26

Class

HijirSettingsForm

Namespace

Drupal\hijri\Form

Code

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