function commerce_product_add_stores_field in Commerce Core 8.2
Adds the default stores field to a product.
Parameters
\Drupal\commerce_product\Entity\ProductTypeInterface $product_type: The product type.
Deprecated
in commerce:8.x-2.16 and is removed from commerce:3.x. The stores field is now a base field.
See also
https://www.drupal.org/node/3090561
File
- modules/
product/ commerce_product.module, line 199 - Defines the Product entity and associated features.
Code
function commerce_product_add_stores_field(ProductTypeInterface $product_type) {
@trigger_error('commerce_product_add_stores_field() function is deprecated in commerce:8.x-2.16 and is removed from commerce:3.x. The stores field is now a base field. See https://www.drupal.org/node/3090561', E_USER_DEPRECATED);
}