You are here

public function RulesPHPDataProcessor::process in Rules 7.2

Overrides RulesDataProcessor::process().

Overrides RulesDataProcessor::process

File

modules/php.eval.inc, line 121
Contains rules integration for the php module needed during evaluation.

Class

RulesPHPDataProcessor
A data processor using PHP.

Code

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