public function PriceListItem::isActive in Commerce Pricelist 8
Get whether or not the price list item is active.
Return value
bool TRUE if the rice list item is acive, FALSE otherwise.
Overrides PriceListItemInterface::isActive
File
- src/
Entity/ PriceListItem.php, line 224
Class
- PriceListItem
- Defines the price list item entity.
Namespace
Drupal\commerce_pricelist\EntityCode
public function isActive() {
return (bool) $this
->getEntityKey('status');
}