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