public function StockLocation::isActive in Commerce Stock 8
Returns the stock location published status indicator.
Unpublished stock location are only visible to restricted users.
Return value
bool TRUE if the stock location is active.
Overrides LocalStockLocationInterface::isActive
File
- modules/
local_storage/ src/ Entity/ StockLocation.php, line 101
Class
- StockLocation
- Defines the stock location entity.
Namespace
Drupal\commerce_stock_local\EntityCode
public function isActive() {
return (bool) $this
->getEntityKey('status');
}