public function AvailabilityManagerInterface::check in Commerce Core 8.2
Same name in this branch
- 8.2 src/AvailabilityManagerInterface.php \Drupal\commerce\AvailabilityManagerInterface::check()
- 8.2 modules/order/src/AvailabilityManagerInterface.php \Drupal\commerce_order\AvailabilityManagerInterface::check()
Checks the availability of the given purchasable entity.
Parameters
\Drupal\commerce\PurchasableEntityInterface $entity: The purchasable entity.
string $quantity: The quantity.
\Drupal\commerce\Context $context: The context.
Return value
bool TRUE if the purchasable entity is available, FALSE otherwise.
1 method overrides AvailabilityManagerInterface::check()
- AvailabilityManager::check in src/
AvailabilityManager.php - Checks the availability of the given purchasable entity.
File
- src/
AvailabilityManagerInterface.php, line 46
Class
- AvailabilityManagerInterface
- Runs the added checkers to determine the availability of a purchasable entity.
Namespace
Drupal\commerceCode
public function check(PurchasableEntityInterface $entity, $quantity, Context $context);