public function StockAvailabilityChecker::applies in Commerce Stock 8
Determines whether the checker applies to the given order item.
Parameters
\Drupal\commerce_order\Entity\OrderItemInterface $order_item: The order item.
Return value
bool TRUE if the checker applies to the given order item, FALSE otherwise.
Overrides AvailabilityCheckerInterface::applies
File
- src/
StockAvailabilityChecker.php, line 41
Class
- StockAvailabilityChecker
- The entry point for availability checking through Commerce Stock.
Namespace
Drupal\commerce_stockCode
public function applies(OrderItemInterface $order_item) {
return TRUE;
}