PropertyModifierReplace: Use getSetting to access settings

This commit is contained in:
Markus Frosch 2016-05-24 16:40:08 +02:00
parent ae36898ca0
commit 5048c63e64
1 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,10 @@ class PropertyModifierReplace extends PropertyModifierHook
public function transform($value)
{
return str_replace($this->settings['string'], $this->settings['replacement'], $value);
return str_replace(
$this->getSetting('string'),
$this->getSetting('replacement'),
$value
);
}
}