PropertyModifierHook: add getSetting method

This commit is contained in:
Thomas Gelf 2016-03-05 17:03:31 +01:00
parent 0c579561ff
commit d0250dc312
1 changed files with 9 additions and 0 deletions

View File

@ -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
*