public function HotjarSettings::getSetting in Hotjar 8
Same name and namespace in other branches
- 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\hotjarCode
public function getSetting($key, $default = NULL) {
$this
->getSettings();
return array_key_exists($key, $this->settings) ? $this->settings[$key] : $default;
}