You are here

public function HotjarSettings::getSetting in Hotjar 8

Same name and namespace in other branches
  1. 8.2 src/HotjarSettings.php \Drupal\hotjar\HotjarSettings::getSetting()

Get setting.

Parameters

string $key: Settings key.

mixed $default: Default value.

Return value

mixed Setting value.

Overrides HotjarSettingsInterface::getSetting

File

src/HotjarSettings.php, line 80

Class

HotjarSettings
Class HotjarSettings.

Namespace

Drupal\hotjar

Code

public function getSetting($key, $default = NULL) {
  $this
    ->getSettings();
  return array_key_exists($key, $this->settings) ? $this->settings[$key] : $default;
}