You are here

public function AvailabilityCheckerInterface::applies in Commerce Core 8.2

Same name in this branch
  1. 8.2 src/AvailabilityCheckerInterface.php \Drupal\commerce\AvailabilityCheckerInterface::applies()
  2. 8.2 modules/order/src/AvailabilityCheckerInterface.php \Drupal\commerce_order\AvailabilityCheckerInterface::applies()

Determines whether the checker applies to the given order item.

Parameters

\Drupal\commerce_order\Entity\OrderItemInterface $order_item: The order item.

Return value

bool TRUE if the checker applies to the given order item, FALSE otherwise.

1 method overrides AvailabilityCheckerInterface::applies()
TestAvailabilityChecker::applies in modules/order/tests/modules/commerce_order_test/src/TestAvailabilityChecker.php
Determines whether the checker applies to the given order item.

File

modules/order/src/AvailabilityCheckerInterface.php, line 22

Class

AvailabilityCheckerInterface
Defines the interface for availability checkers.

Namespace

Drupal\commerce_order

Code

public function applies(OrderItemInterface $order_item);