You are here

public function AvailabilityManager::addChecker in Commerce Core 8.2

Same name in this branch
  1. 8.2 src/AvailabilityManager.php \Drupal\commerce\AvailabilityManager::addChecker()
  2. 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\commerce

Code

public function addChecker(AvailabilityCheckerInterface $checker) {
  $this->checkers[] = $checker;
}