mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
PropertyModifierHook: add getSetting method
This commit is contained in:
parent
0c579561ff
commit
d0250dc312
@ -53,6 +53,15 @@ abstract class PropertyModifierHook
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSetting($name, $default = null)
|
||||
{
|
||||
if (array_key_exists($name, $this->settings)) {
|
||||
return $this->settings[$name];
|
||||
} else {
|
||||
return $default;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode to transform the given value
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user