🇬🇷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
}