You are here

public function PriceListItem::setActive in Commerce Pricelist 8

Sets the price list item active.

Return value

$this

Overrides PriceListItemInterface::setActive

File

src/Entity/PriceListItem.php, line 231

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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