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