You are here

public function CommerceStockTransactionSubscriber::onTransactionInsert in Commerce Stock 8

Logging the insert event.

Parameters

\Drupal\commerce_stock_local\Event\LocalStockTransactionEvent $event: The event.

File

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

Class

CommerceStockTransactionSubscriber
Test class to test the commerce_stock transaction events.

Namespace

Drupal\commerce_stock_local_test\EventSubscriber

Code

public function onTransactionInsert(LocalStockTransactionEvent $event) {
  $this
    ->getLogger('commerce_local_stock_test')
    ->debug('LOCAL_STOCK_TRANSACTION_INSERT issued', $event
    ->getStockTransaction());
}