public function LocalStockTransactionEvent::__construct in Commerce Stock 8
Constructs a new stock transaction event.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
array $stock_transaction: The local stock location.
File
- modules/
local_storage/ src/ Event/ LocalStockTransactionEvent.php, line 39
Class
- LocalStockTransactionEvent
- Defines the stock location event.
Namespace
Drupal\commerce_stock_local\EventCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, array $stock_transaction) {
$this->entityTypeManager = $entity_type_manager;
$this->stockTransaction = $stock_transaction;
}