PropertyModifierReplace: Use getSetting to access settings
This commit is contained in:
parent
ae36898ca0
commit
5048c63e64
|
@ -23,6 +23,10 @@ class PropertyModifierReplace extends PropertyModifierHook
|
||||||
|
|
||||||
public function transform($value)
|
public function transform($value)
|
||||||
{
|
{
|
||||||
return str_replace($this->settings['string'], $this->settings['replacement'], $value);
|
return str_replace(
|
||||||
|
$this->getSetting('string'),
|
||||||
|
$this->getSetting('replacement'),
|
||||||
|
$value
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue