You are here

public function RocketChatSettingsForm::__construct in Rocket.Chat 8.2

Same name and namespace in other branches
  1. 8 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.

\Drupal\Core\Messenger\MessengerInterface $messenger:

Overrides ConfigFormBase::__construct

File

src/Form/RocketChatSettingsForm.php, line 86
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, MessengerInterface $messenger) {
  parent::__construct($config_factory);
  $this->moduleHandler = $moduleHandler;
  $this->state = $state;
  $this->messenger = $messenger;
}