mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 18:59:05 +02:00
PropertyModifierHook: add getSetting method
This commit is contained in:
parent
0c579561ff
commit
d0250dc312
@ -53,6 +53,15 @@ abstract class PropertyModifierHook
|
|||||||
return $this;
|
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
|
* Methode to transform the given value
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user