public function PriceListItem::setInactive in Commerce Pricelist 8
Set the price list item inactive.
Return value
$this
Overrides PriceListItemInterface::setInactive
File
- src/
Entity/ PriceListItem.php, line 239
Class
- PriceListItem
- Defines the price list item entity.
Namespace
Drupal\commerce_pricelist\EntityCode
public function setInactive() {
$this
->set('status', (bool) FALSE);
return $this;
}