protected function SnippetBuilder::isJsPreprocessEnabled in Hotjar 8.2
Same name and namespace in other branches
- 8 src/SnippetBuilder.php \Drupal\hotjar\SnippetBuilder::isJsPreprocessEnabled()
Checks if JS preprocess is enabled.
Return value
bool Returns TRUE if JS preprocess is enabled.
1 call to SnippetBuilder::isJsPreprocessEnabled()
- SnippetBuilder::buildSnippet in src/
SnippetBuilder.php - Get Hotjar snippet code.
File
- src/
SnippetBuilder.php, line 281
Class
- SnippetBuilder
- Snippet builder service.
Namespace
Drupal\hotjarCode
protected function isJsPreprocessEnabled() {
$config = $this->configFactory
->get('system.performance');
$configured = $config
->get('js.preprocess');
if (!isset($configured)) {
$configured = TRUE;
}
return $configured === TRUE;
}