public function AvailabilityManager::addChecker in Commerce Core 8.2
Same name in this branch
- 8.2 src/AvailabilityManager.php \Drupal\commerce\AvailabilityManager::addChecker()
- 8.2 modules/order/src/AvailabilityManager.php \Drupal\commerce_order\AvailabilityManager::addChecker()
Adds a checker.
Parameters
\Drupal\commerce_order\AvailabilityCheckerInterface $checker: The checker.
Overrides AvailabilityManagerInterface::addChecker
File
- modules/
order/ src/ AvailabilityManager.php, line 31
Class
- AvailabilityManager
- Default implementation of the availability manager.
Namespace
Drupal\commerce_orderCode
public function addChecker(AvailabilityCheckerInterface $checker) {
$this->checkers[] = $checker;
}