You are here

public function SettingsForm::__construct in Session Limit 2.x

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler instance to use.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 34

Class

SettingsForm
Class SettingsForm.

Namespace

Drupal\session_limit\Form

Code

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