function commerce_autosku_commerce_product_variation_insert in Commerce AutoSKU 8.2
Implements hook_ENTITY_TYPE_insert().
Since some tokens like variation_id do not exist in hook_entity_presave, we need to set it here.
File
- ./
commerce_autosku.module, line 121 - Allows hiding of entity label fields and automatic label creation.
Code
function commerce_autosku_commerce_product_variation_insert(EntityInterface $entity) {
commerce_autosku_commerce_product_variation_set_sku($entity);
}