You are here

public function ProductInterface::removeVariation in Commerce Core 8.2

Removes a variation.

Parameters

\Drupal\commerce_product\Entity\ProductVariationInterface $variation: The variation.

Return value

$this

1 method overrides ProductInterface::removeVariation()
Product::removeVariation in modules/product/src/Entity/Product.php
Removes a variation.

File

modules/product/src/Entity/ProductInterface.php, line 107

Class

ProductInterface
Defines the interface for products.

Namespace

Drupal\commerce_product\Entity

Code

public function removeVariation(ProductVariationInterface $variation);