function RulesNumericOffsetProcessor::process

Overrides RulesDataProcessor::process().

Overrides RulesDataProcessor::process

File

modules/rules_core.eval.inc, line 241

Class

RulesNumericOffsetProcessor
A data processor for applying numerical offsets.

Code

public function process($value, $info, RulesState $state, RulesPlugin $element) {
    $value = isset($this->processor) ? $this->processor
        ->process($value, $info, $state, $element) : $value;
    return $value + $this->setting['value'];
}