Documentation
getFormerValue
usage
string $value = $data->getFormerValue( string $fieldName )
parameters
fieldName : the name of the field you want to know
returns
the value of the field before the execution of the command.
examples
class ContactProcessor{
function resetInvalidity( /* ModuleProcessingData */ $data ){
if($data->getFormerValue('EMAIL1') != $data->getValue('EMAIL1')){
$data->setValue('EMAILINVALID',0);
}
}
}