public function VariationAddToCart::setCartProvider in Commerce Variation Add to Cart 8
Sets the cart provider.
Parameters
\Drupal\commerce_cart\CartProviderInterface $cart_provider: The cart provider.
File
- src/
Controller/ VariationAddToCart.php, line 67
Class
- VariationAddToCart
- Variation add to cart form controller.
Namespace
Drupal\commerce_variation_add_to_cart\ControllerCode
public function setCartProvider(CartProviderInterface $cart_provider) {
$this->cartProvider = $cart_provider;
}