public function ProductVariation::setListPrice in Commerce Core 8.2
Sets the list price.
Parameters
\Drupal\commerce_price\Price $list_price: The list price.
Return value
$this
Overrides ProductVariationInterface::setListPrice
File
- modules/
product/ src/ Entity/ ProductVariation.php, line 198
Class
- ProductVariation
- Defines the product variation entity class.
Namespace
Drupal\commerce_product\EntityCode
public function setListPrice(Price $list_price) {
return $this
->set('list_price', $list_price);
}