You are here

public function PriceList::isEnabled in Commerce Pricelist 8.2

Get whether the price list is enabled.

Return value

bool TRUE if the price list is enabled, FALSE otherwise.

Overrides PriceListInterface::isEnabled

File

src/Entity/PriceList.php, line 255

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function isEnabled() {
  return (bool) $this
    ->getEntityKey('status');
}