function RulesDataInputEvaluator::process

Overridden to generate evaluator $options and invoke evaluate().

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

1 method overrides RulesDataInputEvaluator::process()
RulesI18nStringEvaluator::process in rules_i18n/rules_i18n.rules.inc
Prepare the i18n-context string.

File

includes/rules.processor.inc, line 261

Class

RulesDataInputEvaluator
A base processor for use by input evaluators.

Code

public function process($value, $info, RulesState $state, RulesPlugin $element, $options = NULL) {
  $options = isset($options) ? $options : $this->getEvaluatorOptions($info, $state, $element);
  $value = isset($this->processor) ? $this->processor
    ->process($value, $info, $state, $element, $options) : $value;
  return $this->evaluate($value, $options, $state);
}