You are here

public function OrderRefreshInterface::shouldRefresh in Commerce Core 8.2

Checks whether the order should be refreshed.

Wraps the needsRefresh() check with an additional refresh mode check, skipping the refresh for non-customers when specified.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

Return value

bool TRUE if the order should be refreshed, FALSE otherwise.

1 method overrides OrderRefreshInterface::shouldRefresh()
OrderRefresh::shouldRefresh in modules/order/src/OrderRefresh.php
Checks whether the order should be refreshed.

File

modules/order/src/OrderRefreshInterface.php, line 40

Class

OrderRefreshInterface
Runs order refresh on draft orders.

Namespace

Drupal\commerce_order

Code

public function shouldRefresh(OrderInterface $order);