function DataProcessorInterface::process
Process the given value.
Parameters
mixed $value: The value to process.
\Drupal\rules\Context\ExecutionStateInterface $rules_state: The current Rules execution state containing all context variables.
Return value
mixed The processed value. Since the value can also be a primitive data type (a string for example) this function must return the value.
Throws
\Drupal\rules\Exception\EvaluationException Thrown when the data cannot be processed.
2 methods override DataProcessorInterface::process()
- NumericOffset::process in src/
Plugin/ RulesDataProcessor/ NumericOffset.php - Process the given value.
- TokenProcessor::process in src/
Plugin/ RulesDataProcessor/ TokenProcessor.php - Process the given value.
File
-
src/
Context/ DataProcessorInterface.php, line 25
Class
- DataProcessorInterface
- Interface for Rules data processor plugins.
Namespace
Drupal\rules\ContextCode
public function process($value, ExecutionStateInterface $rules_state);