public function Product::setVariant in Commerce Google Tag Manager 8.2
Same name and namespace in other branches
- 8 src/Product.php \Drupal\commerce_google_tag_manager\Product::setVariant()
Set the variation.
Parameters
string $variant: The variation.
Return value
\Drupal\commerce_google_tag_manager\Product The Product object.
File
- src/
Product.php, line 228
Class
- Product
- Represents a product in the domain of Google's Enhanced Ecommerce.
Namespace
Drupal\commerce_google_tag_managerCode
public function setVariant($variant) {
$this->variant = $variant;
return $this;
}