You are here

public function VariationAddToCart::setCurrentRequest in Commerce Variation Add to Cart 8

Sets the current request.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

src/Controller/VariationAddToCart.php, line 77

Class

VariationAddToCart
Variation add to cart form controller.

Namespace

Drupal\commerce_variation_add_to_cart\Controller

Code

public function setCurrentRequest(RequestStack $request_stack) {
  $this->currentRequest = $request_stack
    ->getCurrentRequest();
}