You are here

function hotjar_get_settings in Hotjar 8

Same name and namespace in other branches
  1. 6 hotjar.module \hotjar_get_settings()
  2. 7 hotjar.module \hotjar_get_settings()

Get Hotjar settings.

Deprecated

in Hotjar 8.x-1.3 and will be removed before Hotjar 8.x-1.6. Use \Drupal\hotjar\HotjarSettings::getSettings() instead.

File

./hotjar.module, line 76
Drupal Module: Hotjar.

Code

function hotjar_get_settings() {
  @trigger_error('hotjar_get_settings() is deprecated in Hotjar 8.x-1.3 and will be removed before Hotjar 1.6.0. Use \\Drupal\\hotjar\\HotjarSettings::getSettings() instead.', E_USER_DEPRECATED);

  /** @var \Drupal\hotjar\HotjarSettingsInterface $service */
  $service = \Drupal::service('hotjar.settings');
  return $service
    ->getSettings();
}