You are here

public static function CommerceStockTransactionSubscriber::getSubscribedEvents in Commerce Stock 8

@inheritDoc

File

modules/local_storage/tests/modules/commerce_stock_local_test/src/EventSubscriber/CommerceStockTransactionSubscriber.php, line 37

Class

CommerceStockTransactionSubscriber
Test class to test the commerce_stock transaction events.

Namespace

Drupal\commerce_stock_local_test\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    LocalStockTransactionEvents::LOCAL_STOCK_TRANSACTION_CREATE => 'onTransactionCreate',
    LocalStockTransactionEvents::LOCAL_STOCK_TRANSACTION_INSERT => 'onTransactionInsert',
  ];
}