function NumericOffset::process

Overrides DataProcessorInterface::process

File

src/Plugin/RulesDataProcessor/NumericOffset.php, line 25

Class

NumericOffset
A data processor for applying numerical offsets.

Namespace

Drupal\rules\Plugin\RulesDataProcessor

Code

public function process($value, ExecutionStateInterface $rules_state) {
    return $value + $this->configuration['offset'];
}