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 purchasable entity.

Parameters

\Drupal\commerce\PurchasableEntityInterface $entity: The purchasable entity.

Return value

bool TRUE if the checker applies to the given purchasable entity, FALSE otherwise.

File

src/AvailabilityCheckerInterface.php, line 23

Class

AvailabilityCheckerInterface
Defines the interface for availability checkers.

Namespace

Drupal\commerce

Code

public function applies(PurchasableEntityInterface $entity);