public function AlwaysInStock::getIsAlwaysInStock in Commerce Stock 8
Check if entity is always in stock.
Parameters
\Drupal\commerce\PurchasableEntityInterface $entity: The purchasable entity.
Return value
bool TRUE if the entity is always in stock, FALSE otherwise.
Overrides StockCheckInterface::getIsAlwaysInStock
File
- src/
AlwaysInStock.php, line 40
Class
- AlwaysInStock
- The Checker and updater implementation for the always in stock service.
Namespace
Drupal\commerce_stockCode
public function getIsAlwaysInStock(PurchasableEntityInterface $entity) {
return TRUE;
}