You are here

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_stock

Code

public function getIsAlwaysInStock(PurchasableEntityInterface $entity) {
  return TRUE;
}