You are here

public function ApiTestForm::__construct in Rocket.Chat 8.2

Same name and namespace in other branches
  1. 8 modules/rocket_chat_api_test/src/Form/ApiTestForm.php \Drupal\rocket_chat_api_test\Form\ApiTestForm::__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 state information.

\Drupal\Core\Messenger\MessengerInterface $messenger:

File

modules/rocket_chat_api_test/src/Form/ApiTestForm.php, line 80
Contains \Drupal\rocket_chat_api_test\Form\ApiTestForm.

Class

ApiTestForm
Class RocketChatSettingsForm.

Namespace

Drupal\rocket_chat_api_test\Form

Code

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