You are here

public function RocketChatSettingsForm::__construct in Rocket.Chat 8

Same name and namespace in other branches
  1. 8.2 src/Form/RocketChatSettingsForm.php \Drupal\rocket_chat\Form\RocketChatSettingsForm::__construct()

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The ModuleHandler to interact with loaded modules.

\Drupal\Core\State\StateInterface $state: The Stateinterface to manipulate the state.

Overrides ConfigFormBase::__construct

File

src/Form/RocketChatSettingsForm.php, line 67
Contains \Drupal\rocket_chat\Form\RocketChatSettingsForm.

Class

RocketChatSettingsForm
Class RocketChatSettingsForm.

Namespace

Drupal\rocket_chat\Form

Code

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