mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
16 lines
335 B
PHP
16 lines
335 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Director\PropertyModifier;
|
|
|
|
use Icinga\Module\Director\Web\Hook\PropertyModifierHook;
|
|
|
|
class PropertyModifierRegexReplace extends PropertyModifierHook
|
|
{
|
|
|
|
public function transform($value)
|
|
{
|
|
return preg_replace($this->settings['pattern'], $this->settings['replacement'], $value);
|
|
}
|
|
|
|
}
|