public function LocalStockLocationInterface::setActive in Commerce Stock 8
Sets the published status of a stock location.
Parameters
bool $active: TRUE to set this stock location to active, FALSE to set it to inactive.
Return value
\Drupal\commerce_stock_local\Entity\LocalStockLocationInterface The called stock location entity.
1 method overrides LocalStockLocationInterface::setActive()
- StockLocation::setActive in modules/
local_storage/ src/ Entity/ StockLocation.php - Sets the published status of a stock location.
File
- modules/
local_storage/ src/ Entity/ LocalStockLocationInterface.php, line 59
Class
- LocalStockLocationInterface
- Provides an interface for defining local stock location entities.
Namespace
Drupal\commerce_stock_local\EntityCode
public function setActive($active);