You are here

public function HotjarSettings::__construct in Hotjar 8.2

Same name and namespace in other branches
  1. 8 src/HotjarSettings.php \Drupal\hotjar\HotjarSettings::__construct()

HotjarSettings constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler.

File

src/HotjarSettings.php, line 46

Class

HotjarSettings
Hotjar settings service.

Namespace

Drupal\hotjar

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) {
  $this->config = $config_factory
    ->get('hotjar.settings');
  $this->moduleHandler = $module_handler;
  $this
    ->getSettings();
}