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\AvailabilityCheckerInterface $checker: The checker.
Overrides AvailabilityManagerInterface::addChecker
File
- src/
AvailabilityManager.php, line 23
Class
- AvailabilityManager
- Default implementation of the availability manager.
Namespace
Drupal\commerceCode
public function addChecker(AvailabilityCheckerInterface $checker) {
$this->checkers[] = $checker;
}