public function ApiTestForm::__construct in Rocket.Chat 8
Same name and namespace in other branches
- 8.2 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.
File
- modules/
rocket_chat_api_test/ src/ Form/ ApiTestForm.php, line 64 - Contains \Drupal\rocket_chat_api_test\Form\ApiTestForm.
Class
- ApiTestForm
- Class RocketChatSettingsForm.
Namespace
Drupal\rocket_chat_api_test\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $moduleHandler, StateInterface $state) {
$this
->setConfigFactory($config_factory);
$this->moduleHandler = $moduleHandler;
$this->state = $state;
}