public function PriceListItemInterface::setPrice in Commerce Pricelist 8
Same name and namespace in other branches
- 8.2 src/Entity/PriceListItemInterface.php \Drupal\commerce_pricelist\Entity\PriceListItemInterface::setPrice()
Sets the price list item price.
Parameters
\Drupal\commerce_price\Price $price: The price.
Return value
$this
1 method overrides PriceListItemInterface::setPrice()
- PriceListItem::setPrice in src/
Entity/ PriceListItem.php - Sets the price list item price.
File
- src/
Entity/ PriceListItemInterface.php, line 156
Class
- PriceListItemInterface
- Defines the interface for price list items.
Namespace
Drupal\commerce_pricelist\EntityCode
public function setPrice(Price $price);