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…
Reference in New Issue