You are here

protected function SnippetBuilder::isJsPreprocessEnabled in Hotjar 8

Same name and namespace in other branches
  1. 8.2 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 219

Class

SnippetBuilder
Class SnippetBuilder.

Namespace

Drupal\hotjar

Code

protected function isJsPreprocessEnabled() {
  $config = $this->configFactory
    ->get('system.performance');
  return $config
    ->get('js.preprocess', TRUE) === TRUE;
}