public function ProductVariationInterface::setActive in Commerce Core 8.2
Sets whether the variation is active.
Parameters
bool $active: Whether the variation is active.
Return value
$this
Deprecated
in Commerce 8.x-2.11. Use $this->setPublished() or $this->setUnpublished() instead.
1 method overrides ProductVariationInterface::setActive()
- ProductVariation::setActive in modules/
product/ src/ Entity/ ProductVariation.php - Sets whether the variation is active.
File
- modules/
product/ src/ Entity/ ProductVariationInterface.php, line 120
Class
- ProductVariationInterface
- Defines the interface for product variations.
Namespace
Drupal\commerce_product\EntityCode
public function setActive($active);