function RulesDateOffsetProcessor::process
Overrides RulesDataProcessor::process().
Parameters
$value: The value to process.
$info: Info about the parameter for which we process the value.
RulesState $state: The rules evaluation state.
RulesPlugin $element: The element for which we process the value.
Return value
The processed value.
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']);
}