Documentation
setValue
usage
$data->setValue( string fieldName, string value )
paramètres
fieldName : the name of the field to update
value : the new value for the field
exemples
class ContactProcessor{
function resetInvalidity( /* ModuleProcessingData */ $data ){
if($data->getFormerValue('EMAIL1') != $data->getValue('EMAIL1')){
$data->setValue('EMAILINVALID',0);
}
}
}