public function MatomoAdminSettingsForm::__construct in Matomo Analytics 8
Constructs a \Drupal\system\ConfigFormBase object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
Overrides ConfigFormBase::__construct
File
- src/
Form/ MatomoAdminSettingsForm.php, line 46
Class
- MatomoAdminSettingsForm
- Configure Matomo settings for this site.
Namespace
Drupal\matomo\FormCode
public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $currentUser, ModuleHandlerInterface $moduleHandler, Client $httpClient) {
parent::__construct($config_factory);
$this->currentUser = $currentUser;
$this->moduleHandler = $moduleHandler;
$this->httpClient = $httpClient;
}