You are here

public function PriceList::setEnabled in Commerce Pricelist 8.2

Sets whether the price list is enabled.

Parameters

bool $enabled: Whether the price list is enabled.

Return value

$this

Overrides PriceListInterface::setEnabled

File

src/Entity/PriceList.php, line 262

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function setEnabled($enabled) {
  $this
    ->set('status', (bool) $enabled);
  return $this;
}