public function StockTransactions2::__construct in Commerce Stock 8
Constructs a StockTransactions2 object.
Parameters
\Drupal\commerce_product\ProductVariationStorage $productVariationStorage: The commerce product variation storage.
\Drupal\commerce_stock\StockServiceManager $stockServiceManager: The stock service manager.
\Symfony\Component\HttpFoundation\Request $request: The current request.
File
- modules/
ui/ src/ Form/ StockTransactions2.php, line 48
Class
- StockTransactions2
- The second part of a two part create stock transaction form.
Namespace
Drupal\commerce_stock_ui\FormCode
public function __construct(ProductVariationStorage $productVariationStorage, StockServiceManager $stockServiceManager, Request $request) {
$this->productVariationStorage = $productVariationStorage;
$this->stockServiceManager = $stockServiceManager;
$this->request = $request;
}