You are here

public function CommerceStockTransactionSubscriber::onTransactionCreate in Commerce Stock 8

Logging the create 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 50

Class

CommerceStockTransactionSubscriber
Test class to test the commerce_stock transaction events.

Namespace

Drupal\commerce_stock_local_test\EventSubscriber

Code

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