You are here

interface HotjarSettingsInterface in Hotjar 8.2

Same name and namespace in other branches
  1. 8 src/HotjarSettingsInterface.php \Drupal\hotjar\HotjarSettingsInterface

Hotjar settings service interface.

@package Drupal\hotjar

Hierarchy

Expanded class hierarchy of HotjarSettingsInterface

All classes that implement HotjarSettingsInterface

1 file declares its use of HotjarSettingsInterface
HotjarAdminSettingsForm.php in src/Form/HotjarAdminSettingsForm.php

File

src/HotjarSettingsInterface.php, line 10

Namespace

Drupal\hotjar
View source
interface HotjarSettingsInterface {
  const HOTJAR_SNIPPET_VERSION = 6;
  const HOTJAR_SNIPPET_PATH = 'public://hotjar/hotjar.script.js';
  const HOTJAR_PAGES = "/admin\n/admin/*\n/batch\n/node/add*\n/node/*/*\n/user/*/*";
  const ATTACHMENT_MODE_BUILD = 'build';
  const ATTACHMENT_MODE_DRUPAL_SETTINGS = 'drupalSettings';

  /**
   * Get all settings.
   *
   * @param bool $force
   *   Force update of settings.
   *
   * @return array
   *   Get settings.
   */
  public function getSettings($force = FALSE);

  /**
   * Get setting.
   *
   * @param string $key
   *   Settings key.
   * @param mixed $default
   *   Default value.
   *
   * @return mixed
   *   Setting value.
   */
  public function getSetting($key, $default = NULL);

}

Members