Sunnysideup\Ecommerce\Dev\EcommerceCodeFilter::checkCode
makes sure that code is unique and gets rid of special characters should be run in onBeforeWrite.
Signature
public function checkCode(DataObject|string
$obj,
[string
$fieldName = 'Code'] )
Parameters
$obj
— object
$fieldName
— string