- Issue created by @Spoting
- 🇬🇷Greece geostam
You could create an event subscriber like this:
class YourSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents() { return [ LocalStockTransactionEvents::LOCAL_STOCK_TRANSACTION_INSERT => 'onTransactionInsert', ]; } /** * Logging the insert event. * * @param \Drupal\commerce_stock_local\Event\LocalStockTransactionEvent $event * The event. */ public function onTransactionInsert(LocalStockTransactionEvent $event) { //your code }
- 🇬🇷Greece geostam
You could create an event subscriber like this:
class YourSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents() { return [ LocalStockTransactionEvents::LOCAL_STOCK_TRANSACTION_INSERT => 'onTransactionInsert', ]; } /** * Logging the insert event. * * @param \Drupal\commerce_stock_local\Event\LocalStockTransactionEvent $event * The event. */ public function onTransactionInsert(LocalStockTransactionEvent $event) { //your code }
- 🇬🇷Greece geostam
You could create an event subscriber like this:
class YourSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents() { return [ LocalStockTransactionEvents::LOCAL_STOCK_TRANSACTION_INSERT => 'onTransactionInsert', ]; } /** * Logging the insert event. * * @param \Drupal\commerce_stock_local\Event\LocalStockTransactionEvent $event * The event. */ public function onTransactionInsert(LocalStockTransactionEvent $event) { //your code }
- Status changed to Fixed
10 months ago 9:12am 27 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.