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