You are here

public function StockCheckInterface::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.

2 methods override StockCheckInterface::getIsAlwaysInStock()
AlwaysInStock::getIsAlwaysInStock in src/AlwaysInStock.php
Check if entity is always in stock.
LocalStockChecker::getIsAlwaysInStock in modules/local_storage/src/LocalStockChecker.php
Check if entity is always in stock.

File

src/StockCheckInterface.php, line 47

Class

StockCheckInterface
The stock checker interface.

Namespace

Drupal\commerce_stock

Code

public function getIsAlwaysInStock(PurchasableEntityInterface $entity);