public function SnippetBuilder::__construct in Hotjar 8
Same name and namespace in other branches
- 8.2 src/SnippetBuilder.php \Drupal\hotjar\SnippetBuilder::__construct()
SnippetBuilder constructor.
Parameters
\Drupal\Core\State\StateInterface $state: Store storage.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.
\Drupal\hotjar\HotjarSettingsInterface $settings: Hotjar settings.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler.
\Drupal\Core\Asset\AssetCollectionOptimizerInterface $js_collection_optimizer: JS assets optimizer.
\Drupal\Core\Messenger\MessengerInterface $messenger: Messenger service.
File
- src/
SnippetBuilder.php, line 81
Class
- SnippetBuilder
- Class SnippetBuilder.
Namespace
Drupal\hotjarCode
public function __construct(StateInterface $state, ConfigFactoryInterface $config_factory, HotjarSettingsInterface $settings, ModuleHandlerInterface $module_handler, AssetCollectionOptimizerInterface $js_collection_optimizer, MessengerInterface $messenger) {
$this->state = $state;
$this->configFactory = $config_factory;
$this->settings = $settings;
$this->moduleHandler = $module_handler;
$this->jsCollectionOptimizer = $js_collection_optimizer;
$this->messenger = $messenger;
}