🇬🇷Greece @geostam

Account created on 30 May 2013, over 11 years ago
#

Recent comments

🇬🇷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
}
Production build 0.71.5 2024