function RulesDateOffsetProcessor::process

Overrides RulesDataProcessor::process().

Overrides RulesDataProcessor::process

File

modules/rules_core.eval.inc, line 174

Class

RulesDateOffsetProcessor
A data processor for applying date offsets.

Code

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