You are here

public function AvailabilityManager::addLegacyChecker in Commerce Core 8.2

Adds a "legacy" (i.e "deprecated") checker.

Parameters

\Drupal\commerce\AvailabilityCheckerInterface $checker: The "legacy" (i.e "deprecated") checker.

Overrides AvailabilityManagerInterface::addLegacyChecker

File

modules/order/src/AvailabilityManager.php, line 38

Class

AvailabilityManager
Default implementation of the availability manager.

Namespace

Drupal\commerce_order

Code

public function addLegacyChecker(LegacyAvailabilityCheckerInterface $checker) {
  $this->legacyCheckers[] = $checker;
}